소스 검색

using_oh_my_zsh: move current login name to rprompt

cinaeco 13 년 전
부모
커밋
d3391c6de9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      zsh/oh-my-zsh-customs/cinaeco.zsh-theme

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

@@ -47,11 +47,11 @@ git_prompt_status() {
 ## characters by too many or too few. The precmd text is just printed text.
 function precmd() {
   print -rP '
-$fg[cyan][%n @ %m]  $fg[yellow]%3~  $(git_prompt_info)'
+$fg[cyan][%m]  $fg[yellow]%3~  $(git_prompt_info)'
 }
 
 PROMPT='%{$fg[magenta]%}→ %{$reset_color%}'
-RPROMPT='$(vi_mode_prompt_info) %T %{$fg[white]%}%h%{$reset_color%}'
+RPROMPT='$(vi_mode_prompt_info) %{$fg[cyan]%}%n %{$reset_color%}%T %{$fg[white]%}%h%{$reset_color%}'
 
 MODE_INDICATOR="%{$fg[green]%}vi-mode%{$reset_color%}"