Abbreviate working directory path in window title
This commit is contained in:
parent
577fc54494
commit
aeaa0952d7
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user