diff options
Diffstat (limited to 'init/functions/prompt_pwd.fish')
-rw-r--r-- | init/functions/prompt_pwd.fish | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/init/functions/prompt_pwd.fish b/init/functions/prompt_pwd.fish deleted file mode 100644 index 709ccca6..00000000 --- a/init/functions/prompt_pwd.fish +++ /dev/null @@ -1,21 +0,0 @@ - -if test (uname) = Darwin - function prompt_pwd -d (_ "Print the current working directory, shortend to fit the prompt") - if test "$PWD" != "$HOME" - printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|" -e 's-/\([^/]\)\([^/]*\)-/\1-g') - echo $PWD|sed -e 's-.*/[^/]\([^/]*$\)-\1-' - else - echo '~' - end - end -else - function prompt_pwd -d (_ "Print the current working directory, shortend to fit the prompt") - if test "$PWD" != "$HOME" - printf "%s" (echo $PWD|sed -e "s|^$HOME|~|" -e 's-/\([^/]\)\([^/]*\)-/\1-g') - echo $PWD|sed -e 's-.*/[^/]\([^/]*$\)-\1-' - else - echo '~' - end - end -end - |