Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.