mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
adde battery and archlinux plugin
This commit is contained in:
parent
2e9492969b
commit
45e7a2fce4
3 changed files with 152 additions and 0 deletions
36
themes/cruznick.zsh-theme
Normal file
36
themes/cruznick.zsh-theme
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
|
||||
prompt_char() {
|
||||
git branch >/dev/null 2>/dev/null && echo "%F{cyan}±%f" && return
|
||||
hg root >/dev/null 2>/dev/null && echo "%F{cyan}☿%f" && return
|
||||
}
|
||||
custom_prompt_info() {
|
||||
git branch >/dev/null 2>/dev/null && echo "$(git_prompt_info)%F{green}--%f[$(git_prompt_status)]" && return
|
||||
hg root >/dev/null 2>/dev/null && hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null && return
|
||||
|
||||
}
|
||||
command_succes() {
|
||||
if [ $? = 0 ]
|
||||
then
|
||||
echo "%F{yellow}^_^%f"
|
||||
else
|
||||
echo "%F{red}O_O%f"
|
||||
fi
|
||||
}
|
||||
|
||||
PROMPT='┌[%F{green}%3c%f] $(custom_prompt_info)
|
||||
%F{white}└%f %F{green}%#%f >> '
|
||||
RPROMPT='$(command_succes) $(batt_prompt_perc)$(bat_prompt_acstt) $(prompt_char)'
|
||||
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="[%F{yellow}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%f]"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}*%f"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %F{green}°%f"
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_ADDED="%F{green}+%f"
|
||||
ZSH_THEME_GIT_PROMPT_MODIFIED="%F{blue}*%f"
|
||||
ZSH_THEME_GIT_PROMPT_DELETED="%F{red}x%f"
|
||||
ZSH_THEME_GIT_PROMPT_RENAMED="%F{magenta}->%f"
|
||||
ZSH_THEME_GIT_PROMPT_UNMERGED="%F{yellow}═%f"
|
||||
ZSH_THEME_GIT_PROMPT_UNTRACKED="%F{cyan}?%f"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue