summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-04-25 00:15:24 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-04-25 00:15:24 +0200
commitd1ce896f4c3461bfce321fbf5f3f2b2c4e4621fa (patch)
tree56a544c32c410a290d95048a647fc7342713f56b
parent706da08ee1fa293ad6e2dc328e016b2d00e234e2 (diff)
downloaddotfiles-d1ce896f4c3461bfce321fbf5f3f2b2c4e4621fa.tar.gz
dotfiles-d1ce896f4c3461bfce321fbf5f3f2b2c4e4621fa.tar.xz
zshrc: comment precmd and run it only once
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rw-r--r--.zshrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index 0bd9324..cca86ca 100644
--- a/.zshrc
+++ b/.zshrc
@@ -214,7 +214,7 @@ parse_git_branch() {
}
# necessary if you want to use functions in the prompt
# without this they wouldn't be run again
-precmd () {
+#precmd () {
# this has to be on the edge or you have some spaces in the prompt
# if you have any workaround please tell
if [[ $UID != 0 ]]; then
@@ -227,9 +227,9 @@ local path_color=$p_BLUE
local gitbranch_color=$p_magenta
local exitcode_color=$p_red
PROMPT="${username_color}$USERNAME${p_nc}@${host_color}%m${p_nc}\
- ${path_color}%~${p_nc} ${gitbranch_color}$(parse_git_branch)${p_nc}
+ ${path_color}%~${p_nc} ${gitbranch_color}"'$(parse_git_branch)'"${p_nc}
${exitcode_color}$EXITCODE${p_nc}> "
-}
+#}
## Spelling prompt
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) '