From aeaa0952d757eefa44c92b3158442eee2475a21e Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Wed, 15 Feb 2023 16:51:53 -0500 Subject: [PATCH] Abbreviate working directory path in window title --- config.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.fish b/config.fish index 18af193..8c2dd64 100644 --- a/config.fish +++ b/config.fish @@ -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 # Fish 3.X.X and above use "status current-command" - echo (status current-command) (__fish_pwd) + echo (status current-command) (prompt_pwd) else # Older versions of fish use the "$_" variable - echo $_ (__fish_pwd) + echo $_ (prompt_pwd) end