fix(lib): doom-info symlink-path
The `if` clauses were swapped, such that a non-symlinked path was shown like, ~/.config/emacs/ -> ~/.config/emacs/ and a symlinked path was shown as, ~/.config/emacs/
This commit is contained in:
parent
2645ed491b
commit
2bb7e8d018
1 changed files with 3 additions and 2 deletions
|
@ -246,8 +246,9 @@ ready to be pasted in a bug report on github."
|
||||||
(abbreviate-file-name path)))
|
(abbreviate-file-name path)))
|
||||||
(defun symlink-path (file)
|
(defun symlink-path (file)
|
||||||
(format "%s%s" (abbrev-path file)
|
(format "%s%s" (abbrev-path file)
|
||||||
(if (file-symlink-p file) ""
|
(if (file-symlink-p file)
|
||||||
(concat " -> " (abbrev-path (file-truename file)))))))
|
(concat " -> " (abbrev-path (file-truename file)))
|
||||||
|
""))))
|
||||||
`((generated . ,(format-time-string "%b %d, %Y %H:%M:%S"))
|
`((generated . ,(format-time-string "%b %d, %Y %H:%M:%S"))
|
||||||
(system . ,(delq
|
(system . ,(delq
|
||||||
nil (list (doom-system-distro-version)
|
nil (list (doom-system-distro-version)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue