Remove "compiling" of pwd colors

This commit is contained in:
Ilan Cosman 2020-06-07 13:42:37 -07:00
parent 5fea366c24
commit b7ce6d3111
2 changed files with 4 additions and 18 deletions

View File

@ -2,6 +2,10 @@ function _tide_pwd
set -l truncatedPwd $_tide_pwd
set -g _tide_pwd_output $_tide_pwd
set -l _tide_pwd_truncated_dir_color (set_color $tide_pwd_color_truncated_dirs)
set -l _tide_pwd_anchor_color (set_color -o $tide_pwd_color_anchors)
set -l _tide_pwd_dir_color (set_color $tide_pwd_color_dirs)
if not test -w $PWD
set _tide_pwd_output $_tide_pwd_dir_color{$tide_pwd_unwritable_icon}' '$_tide_pwd_output
end

View File

@ -19,23 +19,5 @@ end
function _tide_pwd_set_max_length -v tide_pwd_truncate_margin -s WINCH
set -g _tide_pwd_max_length (math $COLUMNS-$tide_pwd_truncate_margin)
_tide_pwd
end
function _tide_pwd_set_truncated_dir_color -v tide_pwd_color_truncated_dirs
set -g _tide_pwd_truncated_dir_color (set_color $tide_pwd_color_truncated_dirs)
_tide_pwd
end
function _tide_pwd_set_anchor_color -v tide_pwd_color_anchors
set -g _tide_pwd_anchor_color (set_color -o $tide_pwd_color_anchors)
_tide_pwd
end
function _tide_pwd_set_dir_color -v tide_pwd_color_dirs
set -g _tide_pwd_dir_color (set_color $tide_pwd_color_dirs)
_tide_pwd
end