mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
git prompt shouldn't export variables.
This commit is contained in:
parent
ce4081af93
commit
d97e31b4ab
2 changed files with 20 additions and 20 deletions
|
@ -1,24 +1,24 @@
|
||||||
set -gx fish_color_git_clean green
|
set -g fish_color_git_clean green
|
||||||
set -gx fish_color_git_staged yellow
|
set -g fish_color_git_staged yellow
|
||||||
set -gx fish_color_git_dirty red
|
set -g fish_color_git_dirty red
|
||||||
|
|
||||||
set -gx fish_color_git_added green
|
set -g fish_color_git_added green
|
||||||
set -gx fish_color_git_modified blue
|
set -g fish_color_git_modified blue
|
||||||
set -gx fish_color_git_renamed magenta
|
set -g fish_color_git_renamed magenta
|
||||||
set -gx fish_color_git_copied magenta
|
set -g fish_color_git_copied magenta
|
||||||
set -gx fish_color_git_deleted red
|
set -g fish_color_git_deleted red
|
||||||
set -gx fish_color_git_untracked yellow
|
set -g fish_color_git_untracked yellow
|
||||||
set -gx fish_color_git_unmerged red
|
set -g fish_color_git_unmerged red
|
||||||
|
|
||||||
set -gx fish_prompt_git_status_added '✚'
|
set -g fish_prompt_git_status_added '✚'
|
||||||
set -gx fish_prompt_git_status_modified '*'
|
set -g fish_prompt_git_status_modified '*'
|
||||||
set -gx fish_prompt_git_status_renamed '➜'
|
set -g fish_prompt_git_status_renamed '➜'
|
||||||
set -gx fish_prompt_git_status_copied '⇒'
|
set -g fish_prompt_git_status_copied '⇒'
|
||||||
set -gx fish_prompt_git_status_deleted '✖'
|
set -g fish_prompt_git_status_deleted '✖'
|
||||||
set -gx fish_prompt_git_status_untracked '?'
|
set -g fish_prompt_git_status_untracked '?'
|
||||||
set -gx fish_prompt_git_status_unmerged '!'
|
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'
|
function __terlar_git_prompt --description 'Write out the git prompt'
|
||||||
set -l branch (git rev-parse --abbrev-ref HEAD ^/dev/null)
|
set -l branch (git rev-parse --abbrev-ref HEAD ^/dev/null)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# name: Terlar
|
# name: Terlar
|
||||||
# author: terlar - https://github.com/terlar
|
# author: terlar - https://github.com/terlar
|
||||||
|
|
||||||
set -xg fish_color_user magenta
|
set -g fish_color_user magenta
|
||||||
set -xg fish_color_host yellow
|
set -g fish_color_host yellow
|
||||||
|
|
||||||
function fish_prompt --description 'Write out the prompt'
|
function fish_prompt --description 'Write out the prompt'
|
||||||
set -l last_status $status
|
set -l last_status $status
|
||||||
|
|
Loading…
Reference in a new issue