Skip to content

Instantly share code, notes, and snippets.

@jmcbee
Created October 29, 2014 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmcbee/55b98d51f559a2d245e3 to your computer and use it in GitHub Desktop.
Save jmcbee/55b98d51f559a2d245e3 to your computer and use it in GitHub Desktop.
diff --git a/modules/prompt/functions/prompt_peepcode_setup b/modules/prompt/functions/prompt_peepcode_setup
index a83710e..74ccd78 100644
--- a/modules/prompt/functions/prompt_peepcode_setup
+++ b/modules/prompt/functions/prompt_peepcode_setup
@@ -19,6 +19,7 @@ function +vi-git-status() {
function prompt_peepcode_precmd {
vcs_info
+ git-info
if (( $+functions[ruby-info] )); then
ruby-info
@@ -47,14 +48,19 @@ function prompt_peepcode_setup {
zstyle ':vcs_info:*' actionformats ' %F{8}%b%f %F{white}%.7i%f +%a%u'
zstyle ':vcs_info:git*+set-message:*' hooks git-status
+ zstyle ':prezto:module:git:info:branch' format 'branch:%b'
+ zstyle ':prezto:module:git:info:keys' format \
+ 'prompt' 'git(%b)' \
+ 'rprompt' '[%R]'
+
# Set ruby-info parameters.
zstyle ':prezto:module:ruby:info:version' format ' %F{white}%v%f'
# Define prompts.
PROMPT="
%~
-%(?.%F{green}${1:-☻ }%f.%F{red}${1:-☻ }%f) "
-RPROMPT='${ruby_info[version]}${vcs_info_msg_0_}'
+%(?.%F{green}${1:-λ }%f.%F{red}${1:-λ }%f) "
+RPROMPT=''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment