mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 14fae9be34 into 5667161d49
This commit is contained in:
commit
2f5e56bf59
3 changed files with 34 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "plugins/zsh-syntax-highlighting"]
|
||||
path = plugins/zsh-syntax-highlighting
|
||||
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
||||
1
plugins/zsh-syntax-highlighting
Submodule
1
plugins/zsh-syntax-highlighting
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit e5d8a50d362a153a28506be6fae9cf179dbb5fd4
|
||||
30
themes/zephyr.zsh-theme
Normal file
30
themes/zephyr.zsh-theme
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# /|/ Code by Andrew Davies: "Zephyr"
|
||||
#
|
||||
# name in folder (github). github branch shown when in git directory, also shows `*`
|
||||
# to indicate dirty repo.
|
||||
function collapse_pwd {
|
||||
echo $(pwd | sed -e "s,^$HOME,~,")
|
||||
}
|
||||
ZEPHYR_PRE="%{$fg[white]%}"
|
||||
function prompt_char {
|
||||
echo -n "%{$ZEPHYR_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='
|
||||
%{$ZEPHYR_PRE%}┌┤%m├─┤%{$reset_color%}%{$fg[blue]%}$(collapse_pwd)%{$ZEPHYR_PRE%}$(open_git)%{$reset_color%}$(git_prompt_info)%{$ZEPHYR_PRE%}$(close_git)%{$reset_color%}
|
||||
$(prompt_char) '
|
||||
RPROMPT='%{$ZEPHYR_PRE%}%T%{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$ZEPHYR_PRE%}*%{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$ZEPHYR_PRE%}%{$reset_color%}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue