mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Added zephyr theme.
This commit is contained in:
parent
0198a12953
commit
ded1e27f56
1 changed files with 31 additions and 0 deletions
31
themes/zephyr.zsh-theme
Normal file
31
themes/zephyr.zsh-theme
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# /|/ Code by Stephen
|
||||
# /|/ "Rixius" Middleton
|
||||
#
|
||||
# name in folder (github)
|
||||
# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right.
|
||||
function collapse_pwd {
|
||||
echo $(pwd | sed -e "s,^$HOME,~,")
|
||||
}
|
||||
RIXIUS_PRE="%{$fg[white]%}"
|
||||
function prompt_char {
|
||||
echo -n "%{$RIXIUS_PRE%}"
|
||||
git branch >/dev/null 2>/dev/null && echo "╘╡%{$reset_color%}" && return
|
||||
echo "└╼%{$reset_color%}"
|
||||
}
|
||||
function close_git {
|
||||
git branch >/dev/null 2>/dev/null && echo "│"
|
||||
}
|
||||
function open_git {
|
||||
git branch >/dev/null 2>/dev/null && echo "├─┤" && return
|
||||
echo "│"
|
||||
}
|
||||
|
||||
PROMPT='
|
||||
%{$RIXIUS_PRE%}┌┤%m├─┤%{$reset_color%}%{$fg[blue]%}$(collapse_pwd)%{$RIXIUS_PRE%}$(open_git)%{$reset_color%}$(git_prompt_info)%{$RIXIUS_PRE%}$(close_git)%{$reset_color%}
|
||||
$(prompt_char) '
|
||||
RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$RIXIUS_PRE%}*%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$RIXIUS_PRE%}%{$reset_color%}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue