diff options
author | June McEnroe <june@causal.agency> | 2013-12-14 20:22:25 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2013-12-14 20:22:25 -0500 |
commit | f70c216e82687cfb1ce5c518f9666d481ee74db8 (patch) | |
tree | a2088f4d986c005c1ab46f33463d289ef29c7a7a | |
parent | Use ellipsis in prompt (diff) | |
download | src-f70c216e82687cfb1ce5c518f9666d481ee74db8.tar.gz src-f70c216e82687cfb1ce5c518f9666d481ee74db8.zip |
Show path on right side of prompt
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc index da289ea5..dae1abc1 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]%}' |