using prompt_pwd instead of $PWD to show home as ~.

This commit is contained in:
Adriano Bonat 2012-08-08 23:32:45 -03:00
parent faf304d5f4
commit 38fcb0cf44

View File

@ -6,7 +6,7 @@ function fish_prompt
set -l normal (set_color normal)
set -l arrow "$red"
set -l cwd $cyan(basename $PWD)
set -l cwd $cyan(basename (prompt_pwd))
if [ (git_branch_name) ]
set -l git_branch $red(git_branch_name)