Fix pwd bugs

This commit is contained in:
Ilan Cosman 2021-04-24 14:30:03 -07:00
parent 5592e225c9
commit 889c25972d

View File

@ -37,13 +37,12 @@ function _tide_item_pwd
if not test -w $PWD if not test -w $PWD
set -g tide_pwd_icon $colorDirs$tide_pwd_unwritable_icon set -g tide_pwd_icon $colorDirs$tide_pwd_unwritable_icon
else if test $PWD = $HOME else if test $PWD = $HOME
set -g tide_pwd_icon $colorDirs $tide_pwd_home_icon set -g tide_pwd_icon $colorDirs$tide_pwd_home_icon
else else
set -g tide_pwd_icon $colorDirs$tide_pwd_dir_icon set -g tide_pwd_icon $colorDirs$tide_pwd_dir_icon
end end
set -l blah $splitPwdForOutput test "$splitPwd[1]" = '~' || set splitPwdForOutput[1] '/'$splitPwdForOutput[1]
test "$splitPwd[1]" = '~' || set -p blah '/'
_tide_print_item pwd (string join -- / $blah) _tide_print_item pwd (string join -- / $splitPwdForOutput)
end end