Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move some things into RPROMPT. Fixed-width PROMPT is nice.

  • Loading branch information...
commit 96859faf0a95aa789fed06bc626bab79718174e6 1 parent 503af19
@gabebw authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 zsh/prompt.zsh
View
5 zsh/prompt.zsh
@@ -9,5 +9,6 @@ parse_git_dirty(){ [[ -n $(git status -s 2> /dev/null) ]] && echo ' ✗'; }
##########
# MUST wrap $fg in %{...%} or it creates weird errors with commands >1 line
# Use %f to reset color and use terminal default colors (set in Terminal prefs)
-export PROMPT="[\$(ruby_version)\$(git_branch)] %{$fg[blue]%}%~
-%{$fg[green]%}$%f "
+
+export PROMPT="[%{$fg[blue]%}%~%{$fg[black]%}] "
+export RPROMPT="\$(ruby_version)\$(git_branch)"
Please sign in to comment.
Something went wrong with that request. Please try again.