diff options
| author | Blista Kanjo | 2022-04-22 11:11:32 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2022-04-22 11:11:32 -0400 |
| commit | b175b1f00eb3cab70f69aad6d27398f35a636710 (patch) | |
| tree | dfe158b7e80c5d593c531457554a47f83331c772 /fish/functions/fish_prompt.fish | |
| parent | 59b2275aa46d9bbd28c08929087ac9adc9636223 (diff) | |
new "simpler" fish prompt
Diffstat (limited to 'fish/functions/fish_prompt.fish')
| -rw-r--r-- | fish/functions/fish_prompt.fish | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..57ce705 --- /dev/null +++ b/fish/functions/fish_prompt.fish @@ -0,0 +1,26 @@ +set -g __fish_git_prompt_show_informative_status 1 +set -g __fish_git_prompt_hide_untrackedfiles 1 +set -g __fish_git_prompt_showcolorhints 1 + +set -g __fish_git_prompt_color_branch magenta --bold +set -g __fish_git_prompt_showupstream "informative" +set -g __fish_git_prompt_char_upstream_ahead "↑" +set -g __fish_git_prompt_char_upstream_behind "↓" +set -g __fish_git_prompt_char_upstream_prefix "" + +set -g __fish_git_prompt_char_stagedstate "•" +set -g __fish_git_prompt_char_dirtystate "+" +set -g __fish_git_prompt_char_untrackedfiles "…" +set -g __fish_git_prompt_char_conflictedstate "x" +set -g __fish_git_prompt_char_cleanstate "✓" + +set -g __fish_git_prompt_color_dirtystate blue +set -g __fish_git_prompt_color_stagedstate yellow +set -g __fish_git_prompt_color_invalidstate red +set -g __fish_git_prompt_color_untrackedfiles $fish_color_normal +set -g __fish_git_prompt_color_cleanstate green --bold + +function fish_prompt + printf '%s%s%s%s $ ' \ + (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) (fish_git_prompt) +end |
