mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added MacGregor Theme
This commit is contained in:
parent
1a0be15d8c
commit
ce4f48169d
1 changed files with 17 additions and 0 deletions
17
themes/macgregor.zsh-theme
Normal file
17
themes/macgregor.zsh-theme
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
PROMPT='${SMILEY} %{$fg[magenta]%}%n%{$reset_color%}[at]%{$fg[yellow]%}%m%{$reset_color%}%{$reset_color%} $(prompt_char) '
|
||||
|
||||
RPROMPT='in %{$fg[green]%}${PWD/#$HOME/~}%{$reset_color%}'
|
||||
|
||||
function prompt_char {
|
||||
git branch >/dev/null 2>/dev/null && echo '±' && return
|
||||
hg root >/dev/null 2>/dev/null && echo '☿' && return
|
||||
echo '○'
|
||||
}
|
||||
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||
|
||||
SMILEY="%(?,%{$fg[green]%}✔%{$reset_color%},%{$fg[red]%}✘%{$reset_color%})"
|
||||
Loading…
Add table
Add a link
Reference in a new issue