From 3a34269fde8b10cc6a7f6a49598bc24950703de1 Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Thu, 30 Sep 2021 09:17:51 -0700 Subject: [PATCH] Minor edits --- functions/_tide_pwd.fish | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/functions/_tide_pwd.fish b/functions/_tide_pwd.fish index 4f133e2..d401d7c 100644 --- a/functions/_tide_pwd.fish +++ b/functions/_tide_pwd.fish @@ -2,18 +2,18 @@ function _tide_pwd set -l split_pwd (string replace -- $HOME '~' $PWD | string split /) if not test -w $PWD - set -g tide_pwd_icon $tide_pwd_icon_unwritable' ' + set -f icon $tide_pwd_icon_unwritable' ' else if test $PWD = $HOME - set -g tide_pwd_icon $tide_pwd_icon_home' ' + set -f icon $tide_pwd_icon_home' ' else - set -g tide_pwd_icon $tide_pwd_icon' ' + set -f icon $tide_pwd_icon' ' end # Anchor first and last directories (which may be the same) if test -n "$split_pwd[1]" # ~/foo/bar, hightlight ~ - set split_pwd_for_output "$_tide_reset_to_color_dirs$tide_pwd_icon"$_tide_color_anchors$split_pwd[1]$_tide_reset_to_color_dirs $split_pwd[2..] + set split_pwd_for_output "$_tide_reset_to_color_dirs$icon"$_tide_color_anchors$split_pwd[1]$_tide_reset_to_color_dirs $split_pwd[2..] else # /foo/bar, hightlight foo not empty string - set split_pwd_for_output "$_tide_reset_to_color_dirs$tide_pwd_icon" $_tide_color_anchors$split_pwd[2]$_tide_reset_to_color_dirs $split_pwd[3..] + set split_pwd_for_output "$_tide_reset_to_color_dirs$icon" $_tide_color_anchors$split_pwd[2]$_tide_reset_to_color_dirs $split_pwd[3..] end set split_pwd_for_output[-1] $_tide_color_anchors$split_pwd[-1]$_tide_reset_to_color_dirs