mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-26 10:44:21 +03:00
Only replace $HOME with ~ if at beginning (fixes #250)
This commit is contained in:
parent
3e0dc2c3dc
commit
9ca7a9c507
@ -7,7 +7,7 @@ set -l home_icon $tide_pwd_icon_home'\ '
|
||||
set -l pwd_icon $tide_pwd_icon'\ '
|
||||
|
||||
eval "function _tide_pwd
|
||||
set -l split_pwd (string replace -- $HOME '~' \$PWD | string split /)
|
||||
set -l split_pwd (string replace -r -- ^$HOME '~' \$PWD | string split /)
|
||||
|
||||
if not test -w \$PWD
|
||||
set -f icon $unwritable_icon
|
||||
|
Loading…
Reference in New Issue
Block a user