1

Abbreviate working directory path in window title

This commit is contained in:
Jessie Hildebrandt 2023-02-15 16:51:53 -05:00
parent 577fc54494
commit aeaa0952d7

View File

@ -200,12 +200,12 @@ function fish_title --description 'Print the title of the window'
if test (echo $FISH_VERSION | cut -d "." -f 1) -ge 3 if test (echo $FISH_VERSION | cut -d "." -f 1) -ge 3
# Fish 3.X.X and above use "status current-command" # Fish 3.X.X and above use "status current-command"
echo (status current-command) (__fish_pwd) echo (status current-command) (prompt_pwd)
else else
# Older versions of fish use the "$_" variable # Older versions of fish use the "$_" variable
echo $_ (__fish_pwd) echo $_ (prompt_pwd)
end end