diff --git a/init/fish_function.fish b/init/fish_function.fish index 4a4c8af3b..413a2515a 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -186,7 +186,7 @@ end 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') + printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|" -e 's-/\([^/]\)\([^/]*\)-/\1-g') echo $PWD|sed -e 's-.*/[^/]\([^/]*$\)-\1-' else echo '~' @@ -198,7 +198,7 @@ end # function pwd -d "Print working directory" - command pwd | sed -e "s|^$HOME|~|" + command pwd | sed -e 's|/private||' -e "s|^$HOME|~|" end #