doom-doctor: use ~ instead of HOME envvar
This commit is contained in:
parent
1fa4c65c3a
commit
8b8c7c7411
1 changed files with 2 additions and 2 deletions
|
@ -155,9 +155,9 @@
|
|||
;; all-the-icons fonts
|
||||
(let ((font-dest (pcase system-type
|
||||
('gnu/linux (concat (or (getenv "XDG_DATA_HOME")
|
||||
(concat (getenv "HOME") "/.local/share"))
|
||||
"~/.local/share")
|
||||
"/fonts/"))
|
||||
('darwin (concat (getenv "HOME") "/Library/Fonts/")))))
|
||||
('darwin "~/Library/Fonts/"))))
|
||||
(when (and font-dest (require 'all-the-icons nil t))
|
||||
(dolist (font all-the-icons-font-names)
|
||||
(if (file-exists-p (expand-file-name font font-dest))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue