diff options
Diffstat (limited to '.config/shell/git-prompt_examples/bashgitprompt.zsh')
| -rw-r--r-- | .config/shell/git-prompt_examples/bashgitprompt.zsh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/shell/git-prompt_examples/bashgitprompt.zsh b/.config/shell/git-prompt_examples/bashgitprompt.zsh new file mode 100644 index 0000000..0e2018f --- /dev/null +++ b/.config/shell/git-prompt_examples/bashgitprompt.zsh @@ -0,0 +1,28 @@ +# Name: [bash-git-prompt](https://github.com/magicmonty/bash-git-prompt) clone +# Description: +# This example mimics the [bash-git-prompt](https://github.com/magicmonty/bash-git-prompt) +# informative git prompt for bash. + +ZSH_GIT_PROMPT_FORCE_BLANK=1 +ZSH_GIT_PROMPT_SHOW_STASH=1 +ZSH_GIT_PROMPT_SHOW_UPSTREAM="symbol" + +ZSH_THEME_GIT_PROMPT_PREFIX="%B %b[" +ZSH_THEME_GIT_PROMPT_SUFFIX="]" +ZSH_THEME_GIT_PROMPT_SEPARATOR="|" +ZSH_THEME_GIT_PROMPT_BRANCH="%{$fg[magenta]%}" +ZSH_THEME_GIT_PROMPT_UPSTREAM_SYMBOL=" %{$fg_bold[yellow]%}โณ " +ZSH_THEME_GIT_PROMPT_UPSTREAM_PREFIX="%{$fg[yellow]%} โคณ " +ZSH_THEME_GIT_PROMPT_UPSTREAM_SUFFIX="" +ZSH_THEME_GIT_PROMPT_DETACHED="%{$fg_no_bold[cyan]%}:" +ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_no_bold[cyan]%}โ" +ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_no_bold[cyan]%}โ" +ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%}โ" +ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%}โ" +ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[red]%}โ" +ZSH_THEME_GIT_PROMPT_UNTRACKED="โฆ" +ZSH_THEME_GIT_PROMPT_STASHED="%{$fg[blue]%}โ" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}โ" + +PROMPT=$'%(?..%F{red}%?%f ยท )%F{yellow}%B%~%b%F{white}$(gitprompt)\n%D{%H:%M} $ ' +RPROMPT='' |
