mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-22 03:51:15 -03:00
git prompt shouldn't export variables.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user