diff --git a/functions/_tide_pwd.fish b/functions/_tide_pwd.fish index 5447dd4..2a5a3b7 100644 --- a/functions/_tide_pwd.fish +++ b/functions/_tide_pwd.fish @@ -18,7 +18,7 @@ eval "function _tide_pwd string join / -- \$split_output | string length -V | read -g _tide_pwd_len i=1 for dir_section in \$split_pwd[2..-2] - string join -- / \$split_pwd[..\$i] | string replace '~' $HOME | read -l parent_dir # Uses i before increment + string join -- / \$split_pwd[..\$i] | string replace '~' \"$HOME\" | read -l parent_dir # Uses i before increment math \$i+1 | read i