mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 09:26:27 +03:00
Remove "compiling" of pwd colors
This commit is contained in:
parent
5fea366c24
commit
b7ce6d3111
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user