Added zsh skwp.theme to installer, so we don't rely on my zsh fork anymore
This commit is contained in:
19
oh-my-zsh/themes/skwp.zsh-theme
Normal file
19
oh-my-zsh/themes/skwp.zsh-theme
Normal file
@@ -0,0 +1,19 @@
|
||||
# Simple theme with RVM prompt
|
||||
function preexec() {
|
||||
typeset -gi CALCTIME=1
|
||||
typeset -gi CMDSTARTTIME=SECONDS
|
||||
}
|
||||
function precmd() {
|
||||
if (( CALCTIME )) ; then
|
||||
typeset -gi ETIME=SECONDS-CMDSTARTTIME
|
||||
fi
|
||||
typeset -gi CALCTIME=0
|
||||
}
|
||||
|
||||
PROMPT='%{$fg[blue]%}%~%{$fg_bold[yellow]%}$(git_prompt_info)%{$reset_color%}%{$fg[blue]%}➤ %{$reset_color%}'
|
||||
RPROMPT='%{$fg[blue]%}$(rvm-prompt i v p g) [${ETIME}s] %{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" "
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=" "
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY=" ✗"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
|
||||
Reference in New Issue
Block a user