mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
parent
07782ea9f6
commit
e8f8a61a74
1 changed files with 2 additions and 2 deletions
|
@ -522,9 +522,9 @@ If DEFAULT is non-nil, set the default mode-line for all buffers."
|
|||
"Return fish-style truncated string based on FULL-PATH.
|
||||
Optional parameter TRUNCATE-ALL will cause the function to truncate the last
|
||||
directory too."
|
||||
(let* ((home (getenv "HOME"))
|
||||
(let* ((home (expand-file-name "~"))
|
||||
(path (replace-regexp-in-string
|
||||
(s-concat "^" home "$") "~" full-path))
|
||||
(s-concat "^" home) "~" full-path))
|
||||
(split (s-split "/" path 'omit-nulls))
|
||||
(split-len (length split))
|
||||
shrunk)
|
||||
|
|
Loading…
Reference in a new issue