This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/.old/fish/functions/fish_prompt.fish

46 lines
1.4 KiB
Fish
Raw Normal View History

2020-05-06 03:20:19 +02:00
# Options
#set __fish_git_prompt_showupstream "informative"
#set __fish_git_prompt_showdirtystate 1
#set __fish_git_prompt_showstashstate 1
#set __fish_git_prompt_showuntrackedfiles 1
set __fish_git_prompt_showcolorhints
set __fish_git_prompt_show_informative_status
# Colors
set green (set_color green)
set magenta (set_color magenta)
set normal (set_color normal)
set red (set_color red)
set yellow (set_color yellow)
set __fish_git_prompt_color_branch magenta --bold
set __fish_git_prompt_color_dirtystate white --bold
set __fish_git_prompt_color_stashstate magenta
set __fish_git_prompt_color_invalidstate red
set __fish_git_prompt_color_merging yellow
set __fish_git_prompt_color_stagedstate yellow
set __fish_git_prompt_color_upstream yellow --bold
# Icons
set __fish_git_prompt_char_cleanstate ' '
set __fish_git_prompt_char_invalidstate ' '
set __fish_git_prompt_char_dirtystate ' !'
set __fish_git_prompt_char_stagedstate ' '
set __fish_git_prompt_char_stashstate ' $'
set __fish_git_prompt_char_stateseparator ' |'
set __fish_git_prompt_char_untrackedfiles ' ?'
set __fish_git_prompt_char_upstream_ahead ' '
set __fish_git_prompt_char_upstream_behind ' '
set __fish_git_prompt_char_upstream_diverged ' 祈'
function fish_prompt
set last_status $status
set_color cyan --bold
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
set_color normal
end