git prompt shouldn't export variables.

This commit is contained in:
Konrad Borowski 2014-06-01 09:39:07 +02:00
parent ce4081af93
commit d97e31b4ab
2 changed files with 20 additions and 20 deletions

View file

@ -1,24 +1,24 @@
set -gx fish_color_git_clean green
set -gx fish_color_git_staged yellow
set -gx fish_color_git_dirty red
set -g fish_color_git_clean green
set -g fish_color_git_staged yellow
set -g fish_color_git_dirty red
set -gx fish_color_git_added green
set -gx fish_color_git_modified blue
set -gx fish_color_git_renamed magenta
set -gx fish_color_git_copied magenta
set -gx fish_color_git_deleted red
set -gx fish_color_git_untracked yellow
set -gx fish_color_git_unmerged red
set -g fish_color_git_added green
set -g fish_color_git_modified blue
set -g fish_color_git_renamed magenta
set -g fish_color_git_copied magenta
set -g fish_color_git_deleted red
set -g fish_color_git_untracked yellow
set -g fish_color_git_unmerged red
set -gx fish_prompt_git_status_added '✚'
set -gx fish_prompt_git_status_modified '*'
set -gx fish_prompt_git_status_renamed '➜'
set -gx fish_prompt_git_status_copied '⇒'
set -gx fish_prompt_git_status_deleted '✖'
set -gx fish_prompt_git_status_untracked '?'
set -gx fish_prompt_git_status_unmerged '!'
set -g fish_prompt_git_status_added '✚'
set -g fish_prompt_git_status_modified '*'
set -g fish_prompt_git_status_renamed '➜'
set -g fish_prompt_git_status_copied '⇒'
set -g fish_prompt_git_status_deleted '✖'
set -g fish_prompt_git_status_untracked '?'
set -g fish_prompt_git_status_unmerged '!'
set -gx fish_prompt_git_status_order added modified renamed copied deleted untracked unmerged
set -g fish_prompt_git_status_order added modified renamed copied deleted untracked unmerged
function __terlar_git_prompt --description 'Write out the git prompt'
set -l branch (git rev-parse --abbrev-ref HEAD ^/dev/null)

View file

@ -1,8 +1,8 @@
# name: Terlar
# author: terlar - https://github.com/terlar
set -xg fish_color_user magenta
set -xg fish_color_host yellow
set -g fish_color_user magenta
set -g fish_color_host yellow
function fish_prompt --description 'Write out the prompt'
set -l last_status $status