Browse Source

using_oh_my_zsh: change vi-mode and time location

Weiyi Lou 13 years ago
parent
commit
34cb3a3de5
1 changed files with 3 additions and 2 deletions
  1. 3 2
      zsh/oh-my-zsh-customs/cinaeco.zsh-theme

+ 3 - 2
zsh/oh-my-zsh-customs/cinaeco.zsh-theme

@@ -11,12 +11,13 @@ function git_prompt_info() {
 ## offset (backwards or forwards) by the wrong number of characters.
 function precmd() {
   print -rP '
-$fg[cyan][%n@%m] $reset_color%T $fg[yellow]%3~  $(git_prompt_info)'
+$fg[cyan][%n@%m]  $fg[yellow]%3~  $(git_prompt_info)'
 }
 
 PROMPT='%{$fg[magenta]%}→ %{$reset_color%}'
+RPROMPT='$(vi_mode_prompt_info) %T %{$fg[white]%}%h%{$reset_color%}'
 
-MODE_INDICATOR="%{$fg[red]%}-- COMMAND MODE --%{$reset_color%}"
+MODE_INDICATOR="%{$fg[green]%}vi-mode%{$reset_color%}"
 
 ZSH_THEME_GIT_PROMPT_PREFIX="[git:"
 ZSH_THEME_GIT_PROMPT_SUFFIX="]$reset_color"