summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2013-01-26 17:46:57 -0500
committerJune McEnroe <programble@gmail.com>2013-01-26 17:46:57 -0500
commit9d21d97ecf2ec3a9d30deb896ef18bb0192feb10 (patch)
tree25ac47a078b289621e1c2c53b197c87487ea92c7 /.zshrc
parentActually port awesome config to 3.5 (diff)
downloadsrc-9d21d97ecf2ec3a9d30deb896ef18bb0192feb10.tar.gz
src-9d21d97ecf2ec3a9d30deb896ef18bb0192feb10.zip
Add git prompt
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 4d73851d..2ac8a8bf 100644
--- a/.zshrc
+++ b/.zshrc
@@ -35,7 +35,7 @@ bindkey "\e[F" end-of-line
 autoload colors zsh/terminfo
 colors
 
-PROMPT="%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} "
+PROMPT=$'%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~$(gitprompt)%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} '
 RPROMPT="%(?..%{$terminfo[bold]$fg[green]%}[%{$fg[red]%}%?%{$fg[green]%}]%{$terminfo[sgr0]%})"
 
 # Libs and stuff
@@ -57,6 +57,9 @@ ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=yellow,bold'
 source ~/.zsh/z/z.sh
 
 source /usr/share/chruby/chruby.sh
+chruby 1.9
+
+source ~/.zsh/gitprompt.zsh
 
 # Environment