diff options
author | June McEnroe <programble@gmail.com> | 2013-12-14 20:22:25 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2013-12-14 20:22:25 -0500 |
commit | 5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc (patch) | |
tree | a505c81e2c31d3d1c8d2b0f6a297610d99d81d72 | |
parent | Use ellipsis in prompt (diff) | |
download | src-5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc.tar.gz src-5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc.zip |
Show path on right side of prompt
-rw-r--r-- | .zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc index 618f60ff..09362987 100644 --- a/.zshrc +++ b/.zshrc @@ -62,6 +62,6 @@ EDITOR=vim # Prompt unset _prompt_host -[[ -n "$SSH_CLIENT" ]] && _prompt_host="%{$fg[magenta]%}%m:" -PROMPT=$'%{$terminfo[bold]$fg[green]%}[$_prompt_host%{$fg[blue]%}%30<…<%~$(gitprompt)%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} ' -RPROMPT="%(?..%{$terminfo[bold]$fg[green]%}[%{$fg[red]%}%?%{$fg[green]%}]%{$terminfo[sgr0]%})" +[[ -n "$SSH_CLIENT" ]] && _prompt_host="%{$fg[magenta]%}%m" +PROMPT=$'%{$terminfo[bold]%}$_prompt_host%{$fg[green]%}»%{$terminfo[sgr0]$reset_color%} ' +RPROMPT=$'%{$terminfo[bold]%}%(?..%{$fg[red]%}%? )%{$fg[blue]%}%30<…<%~$(gitprompt)%{$terminfo[sgr0]%}' |