From b7ce6d31112a85d7271ed695a74e5060225806ad Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Sun, 7 Jun 2020 13:42:37 -0700 Subject: [PATCH] Remove "compiling" of pwd colors --- conf.d/_tide_pwd.fish | 4 ++++ conf.d/_tide_pwd_set_vars.fish | 18 ------------------ 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/conf.d/_tide_pwd.fish b/conf.d/_tide_pwd.fish index f4ae977..cea70ef 100644 --- a/conf.d/_tide_pwd.fish +++ b/conf.d/_tide_pwd.fish @@ -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 diff --git a/conf.d/_tide_pwd_set_vars.fish b/conf.d/_tide_pwd_set_vars.fish index 20d5bdd..48d23b8 100644 --- a/conf.d/_tide_pwd_set_vars.fish +++ b/conf.d/_tide_pwd_set_vars.fish @@ -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 \ No newline at end of file