diff options
author | 2012-11-13 21:41:43 +0100 | |
---|---|---|
committer | 2012-11-17 13:37:32 -0800 | |
commit | ed4e6cd3a51afa3eb11235f6a72e9da61cdaf3d8 (patch) | |
tree | 0ea911809c82f013b2eed8f409a4b02c65c5cd60 /share/functions/__terlar_git_prompt.fish | |
parent | 7d45e6f12f00277c74b545588077178110fbbcca (diff) |
Fix uniqueness and escape question-marks
Diffstat (limited to 'share/functions/__terlar_git_prompt.fish')
-rw-r--r-- | share/functions/__terlar_git_prompt.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__terlar_git_prompt.fish b/share/functions/__terlar_git_prompt.fish index 3c80e2cb..47b138c0 100644 --- a/share/functions/__terlar_git_prompt.fish +++ b/share/functions/__terlar_git_prompt.fish @@ -18,7 +18,7 @@ function __terlar_git_prompt --description 'Write out the git prompt' echo -n '|' - set -l index (git status --porcelain ^/dev/null|cut -c 1-2|uniq) + set -l index (git status --porcelain ^/dev/null|cut -c 1-2|sort -u) if test -z "$index" set_color $fish_color_git_clean @@ -42,7 +42,7 @@ function __terlar_git_prompt --description 'Write out the git prompt' case 'R ' ; set renamed case 'C ' ; set copied case 'D ' ' D' ; set deleted - case '??' ; set untracked + case '\?\?' ; set untracked case 'U*' '*U' 'DD' 'AA'; set unmerged end end |