oh my zsh amuse theme timer added
This commit is contained in:
parent
7b8138e064
commit
78411555bc
@ -10,11 +10,24 @@ ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|||||||
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg_bold[red]%}‹"
|
ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg_bold[red]%}‹"
|
||||||
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
|
ZSH_THEME_RUBY_PROMPT_SUFFIX="›%{$reset_color%}"
|
||||||
|
|
||||||
|
# timer
|
||||||
|
function preexec() {
|
||||||
|
timer=${timer:-$SECONDS}
|
||||||
|
}
|
||||||
|
|
||||||
|
function precmd() {
|
||||||
|
if [ $timer ]; then
|
||||||
|
timer_show=$(($SECONDS - $timer))
|
||||||
|
export RPROMPT="%F{cyan}${timer_show}s %{$reset_color%}"
|
||||||
|
unset timer
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
|
%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
|
||||||
$ '
|
$ '
|
||||||
|
|
||||||
RPROMPT='$(ruby_prompt_info)'
|
# RPROMPT='$(ruby_prompt_info)'
|
||||||
|
|
||||||
VIRTUAL_ENV_DISABLE_PROMPT=0
|
VIRTUAL_ENV_DISABLE_PROMPT=0
|
||||||
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %{$fg[green]%}🐍 "
|
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %{$fg[green]%}🐍 "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user