From ff17f8af1b313837dc349fc9649708262a47d0d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20Smyku=C5=82a?= Date: Thu, 30 May 2013 20:24:29 +0200 Subject: [PATCH] Fix, pwd outside git is not working yet :( --- config.fish | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config.fish b/config.fish index eca9cce..c733452 100644 --- a/config.fish +++ b/config.fish @@ -16,26 +16,26 @@ end # Colors # Reset -set ResetColor (set_color normal) # Text Reset +set ResetColor (set_color normal) # Text Reset # Regular Colors -set Red (set_color red) # Red +set Red (set_color red) # Red set Yellow (set_color yellow); # Yellow -set Blue (set_color blue) # Blue +set Blue (set_color blue) # Blue set WHITE (set_color white) # Bold -set BGreen (set_color green) # Green +set BGreen (set_color green) # Green # High Intensty -set IBlack (set_color black) # Black +set IBlack (set_color black) # Black # Bold High Intensty -set Magenta (set_color purple) # Purple +set Magenta (set_color purple) # Purple # Various variables you might want for your PS1 prompt instead set Time (date +%X) -set PathShort (pwd|sed "s=$HOME=~=") #(prompt_pwd) +set PathShort (pwd|sed "s=$HOME=~=") # Default values for the appearance of the prompt. Configure at will. set GIT_PROMPT_PREFIX "(" @@ -60,7 +60,7 @@ function fish_prompt set _GIT_STATUS (python $gitstatus) set __CURRENT_GIT_STATUS $_GIT_STATUS set GIT_BRANCH $__CURRENT_GIT_STATUS[1] - set GIT_REMOTE $__CURRENT_GIT_STATUS[2] + set GIT_REMOTE "$__CURRENT_GIT_STATUS[2]" if test "." -eq $GIT_REMOTE set -e GIT_REMOTE end