summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2013-12-14 20:22:25 -0500
committerJune McEnroe <programble@gmail.com>2013-12-14 20:22:25 -0500
commit5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc (patch)
treea505c81e2c31d3d1c8d2b0f6a297610d99d81d72 /.zshrc
parentUse ellipsis in prompt (diff)
downloadsrc-5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc.tar.gz
src-5611cc1e0bbbbb7ce6409bef404ba722cd0dd0dc.zip
Show path on right side of prompt
Diffstat (limited to '')
-rw-r--r--.zshrc6
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]%}'