mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 20:13:05 +03:00
Fix pwd bugs
This commit is contained in:
parent
5592e225c9
commit
889c25972d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user