]> git.rmz.io Git - dotfiles.git/blob - zsh/themes/candy-kingdom.zsh-theme
add xbindkeysrc
[dotfiles.git] / zsh / themes / candy-kingdom.zsh-theme
1 # neuralsanwich.zsh-theme
2 #
3 # Author: Sean Jones
4 # URL: http://www.neuralsandwich.com
5 # Repo:
6 # Direct link:
7 # Create:
8 # Modified:
9
10 if [ "x$OH_MY_ZSH_HG" = "x" ]; then
11 OH_MY_ZSH_HG="hg"
12 fi
13
14 function hg_prompt_info {
15 $OH_MY_ZSH_HG prompt --angle-brackets "\
16 < on %{$fg[magenta]%}<branch>%{$reset_color%}>\
17 < at %{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
18 %{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}<
19 patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
20 }
21
22 function box_name {
23 [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
24 }
25
26 PROMPT='
27 %{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(git_prompt_info)
28 %(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ '
29
30 ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[magenta]%}branch: "
31 ZSH_THEME_GIT_PROMPT_CLEAN=""
32 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[red]%}?"
33 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[orange]%}!"
34 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
35
36 local return_status="%{$fg[red]%}%(?..✘)%{$reset_color%}"
37 RPROMPT='${return_status}$(battery_time_remaining) $(battery_pct_prompt)%{$reset_color%}'