Updated zmoji theme and battery theme.

This commit is contained in:
Sean Carolan 2014-03-03 18:12:24 -05:00
commit d9b16fe2b2
2 changed files with 2 additions and 14 deletions

View file

@ -146,5 +146,3 @@ function battery_level_gauge() {
[[ $filled -lt $gauge_slots ]] && printf ${empty_symbol//\%/\%\%}'%.0s' {1..$empty} [[ $filled -lt $gauge_slots ]] && printf ${empty_symbol//\%/\%\%}'%.0s' {1..$empty}
printf ${color_reset//\%/\%\%}${battery_suffix//\%/\%\%}${color_reset//\%/\%\%} printf ${color_reset//\%/\%\%}${battery_suffix//\%/\%\%}${color_reset//\%/\%\%}
} }

View file

@ -1,7 +1,7 @@
############################################################################## ##############################################################################
# zmoji: A fun oh_my_zsh theme with an OSX emoji character in your prompt # zmoji: A fun oh_my_zsh theme with an OSX emoji character in your prompt
# #
# Requires the zmoji, moonphase, and emoji-clock plugins # Requires the zmoji, moonphase, battery, and emoji-clock plugins
# #
# Open this link in Safari to see a master list: # Open this link in Safari to see a master list:
# http://www.grumdrig.com/emoji-list/ # http://www.grumdrig.com/emoji-list/
@ -47,16 +47,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
# Uses the batcharge.py script; need to refactor this into pure zsh
function battery_charge() {
if [ -e ~/bin/batcharge.py ]
then
echo `python ~/bin/batcharge.py`
else
echo ''
fi
}
function setprompt { function setprompt {
# Here we let the user choose an emoji, or pick a random one. # Here we let the user choose an emoji, or pick a random one.
if (($EMOJI_KEYS[(Ie)$ICON])); then if (($EMOJI_KEYS[(Ie)$ICON])); then
@ -65,7 +55,7 @@ function setprompt {
# Use this prompt if you want your ICON to change every hour # Use this prompt if you want your ICON to change every hour
PROMPT='[%{$fg[yellow]%}%2~%{$reset_color%}] %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%} %(0T.$EMOJI[$ICONLIST[24]].%(1T.$EMOJI[$ICONLIST[1]].%(2T.$EMOJI[$ICONLIST[2]].%(3T.$EMOJI[$ICONLIST[3]].%(4T.$EMOJI[$ICONLIST[4]].%(5T.$EMOJI[$ICONLIST[5]].%(6T.$EMOJI[$ICONLIST[6]].%(7T.$EMOJI[$ICONLIST[7]].%(8T.$EMOJI[$ICONLIST[8]].%(9T.$EMOJI[$ICONLIST[9]].%(10T.$EMOJI[$ICONLIST[10]].%(11T.$EMOJI[$ICONLIST[11]].%(12T.$EMOJI[$ICONLIST[12]].%(13T.$EMOJI[$ICONLIST[13]].%(14T.$EMOJI[$ICONLIST[14]].%(15T.$EMOJI[$ICONLIST[15]].%(16T.$EMOJI[$ICONLIST[16]].%(17T.$EMOJI[$ICONLIST[17]].%(18T.$EMOJI[$ICONLIST[18]].%(19T.$EMOJI[$ICONLIST[19]].%(20T.$EMOJI[$ICONLIST[20]].%(21T.$EMOJI[$ICONLIST[21]].%(22T.$EMOJI[$ICONLIST[22]].%(23T.$EMOJI[$ICONLIST[23]].\$)))))))))))))))))))))))) ' PROMPT='[%{$fg[yellow]%}%2~%{$reset_color%}] %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}% %{$reset_color%} %(0T.$EMOJI[$ICONLIST[24]].%(1T.$EMOJI[$ICONLIST[1]].%(2T.$EMOJI[$ICONLIST[2]].%(3T.$EMOJI[$ICONLIST[3]].%(4T.$EMOJI[$ICONLIST[4]].%(5T.$EMOJI[$ICONLIST[5]].%(6T.$EMOJI[$ICONLIST[6]].%(7T.$EMOJI[$ICONLIST[7]].%(8T.$EMOJI[$ICONLIST[8]].%(9T.$EMOJI[$ICONLIST[9]].%(10T.$EMOJI[$ICONLIST[10]].%(11T.$EMOJI[$ICONLIST[11]].%(12T.$EMOJI[$ICONLIST[12]].%(13T.$EMOJI[$ICONLIST[13]].%(14T.$EMOJI[$ICONLIST[14]].%(15T.$EMOJI[$ICONLIST[15]].%(16T.$EMOJI[$ICONLIST[16]].%(17T.$EMOJI[$ICONLIST[17]].%(18T.$EMOJI[$ICONLIST[18]].%(19T.$EMOJI[$ICONLIST[19]].%(20T.$EMOJI[$ICONLIST[20]].%(21T.$EMOJI[$ICONLIST[21]].%(22T.$EMOJI[$ICONLIST[22]].%(23T.$EMOJI[$ICONLIST[23]].\$)))))))))))))))))))))))) '
# RPROMPT includes battery monitor, clock, and moon phase # RPROMPT includes battery monitor, clock, and moon phase
RPROMPT='%{$fg[green]%} $(battery_charge)%{$reset_color%} %(17T.$EMOJI[BEER_MUG].$(emoji-clock)) $(printmoon)' RPROMPT='%{$fg[green]%} $(battery_level_gauge)%{$reset_color%} %(17T.$EMOJI[BEER_MUG].$(emoji-clock)) $(printmoon)'
fi fi
} }