diff options
| author | Blista Kanjo | 2023-08-02 20:40:22 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-08-02 20:40:22 -0400 |
| commit | 0b8db4f1c67d001d7e43ac9154a6cbdbcfb1790e (patch) | |
| tree | 45dfcfd0721c641a3b02b54dc9ec040861e6e63e /.config/shell/git-prompt_examples/bashgitprompt.zsh | |
| parent | b8322b5b705e77e61800e9960bdac3e99bb23ac5 (diff) | |
feat: migrated `fish` config to `zsh` (may be buggy)
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='' |
