mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added new theme Powerline
Powerline theme inspired by the Vim-powerline plugin.
This commit is contained in:
parent
ce4f48169d
commit
8c8909e2a6
2 changed files with 17 additions and 0 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
17
themes/powerline.zsh-theme
Normal file
17
themes/powerline.zsh-theme
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
PROMPT='${SMILEY}$BG[024]$FG[255] %n %{$reset_color%}$FG[024]$BG[102]⮀$FG[255]%m %{$reset_color%}$BG[255]$FG[102]⮀%{$reset_color%}$FG[000]$BG[255] $(prompt_char)%{$reset_color%}$FG[255]⮀%{$reset_color%}'
|
||||||
|
RPROMPT='in %{$fg_bold[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="%(?,$BG[154]$FG[192] ✔ $BG[024]$FG[154]⮀,$BG[131]$FG[255] ✘ $BG[024]$FG[131]⮀)"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue