瀏覽代碼

Fix PROMPT and RPROMPT output, putting git info in RPROMPT.

cray
Mitch Tishmack 11 年之前
父節點
當前提交
070cbc2230
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      zsh/.zshrc

+ 2
- 1
zsh/.zshrc 查看文件

@@ -138,4 +138,5 @@ zstyle ':vcs_info:*' formats "$branch"
zstyle ':vcs_info:*' actionformats "$branch (%a)"
zstyle ':vcs_info:*' stagedstr "%{$fg[yellow]%}*"
zstyle ':vcs_info:*' unstagedstr "%{$fg[red]%}*"
PROMPT="$userat:$pwd\${vcs_info_msg_0_}$userchar "
PROMPT="$userat:$pwd$userchar "
RPROMPT="${vcs_info_msg_0_}"

Loading…
取消
儲存