mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
doom-doctor: use ~ instead of HOME envvar
This commit is contained in:
@ -155,9 +155,9 @@
|
|||||||
;; all-the-icons fonts
|
;; all-the-icons fonts
|
||||||
(let ((font-dest (pcase system-type
|
(let ((font-dest (pcase system-type
|
||||||
('gnu/linux (concat (or (getenv "XDG_DATA_HOME")
|
('gnu/linux (concat (or (getenv "XDG_DATA_HOME")
|
||||||
(concat (getenv "HOME") "/.local/share"))
|
"~/.local/share")
|
||||||
"/fonts/"))
|
"/fonts/"))
|
||||||
('darwin (concat (getenv "HOME") "/Library/Fonts/")))))
|
('darwin "~/Library/Fonts/"))))
|
||||||
(when (and font-dest (require 'all-the-icons nil t))
|
(when (and font-dest (require 'all-the-icons nil t))
|
||||||
(dolist (font all-the-icons-font-names)
|
(dolist (font all-the-icons-font-names)
|
||||||
(if (file-exists-p (expand-file-name font font-dest))
|
(if (file-exists-p (expand-file-name font font-dest))
|
||||||
|
Reference in New Issue
Block a user