Skip to content

Instantly share code, notes, and snippets.

@spacetime
Created April 11, 2013 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spacetime/5363189 to your computer and use it in GitHub Desktop.
Save spacetime/5363189 to your computer and use it in GitHub Desktop.
tjkirch_mod Derivation with battery status (Hindi)
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
ZSH_THEME_GIT_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
PROMPT='%(?,,%{$fg[red]%}FAIL: $?%{$reset_color%}
)%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%}: %{$fg_bold[blue]%}%~%{$reset_color%}$(git_prompt_info) %_$(prompt_char) '
RPROMPT='%{$fg_bold[yellow]%}[`upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E percentage| tr -s \ | cut -d \ -f 3 ` %% चार्ज] %{$reset_color%}%{$fg[green]%}[%*]%{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment