summaryrefslogtreecommitdiff
path: root/Functions/Prompts
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2012-02-21 21:52:09 +0100
committerAxel Beckert <abe@deuxchevaux.org>2012-02-21 21:52:55 +0100
commitb561eedd8b1d70a2b3339d167348771f1a8fc5c7 (patch)
treea7d7d32a90f391767a921a5fcdb59551cdffa04e /Functions/Prompts
parent340a3b41e51e3f39249a9e28f0615b063f073a3c (diff)
parent5f25bb8223d090d13af5869893fa35e5b8c44182 (diff)
downloadzsh-b561eedd8b1d70a2b3339d167348771f1a8fc5c7.tar.gz
zsh-b561eedd8b1d70a2b3339d167348771f1a8fc5c7.zip
New upstream release
Merge branch 'upstream' into debian
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/prompt_redhat_setup2
-rw-r--r--Functions/Prompts/promptinit6
2 files changed, 5 insertions, 3 deletions
diff --git a/Functions/Prompts/prompt_redhat_setup b/Functions/Prompts/prompt_redhat_setup
index 5bde7f9ab..5adf2d7cf 100644
--- a/Functions/Prompts/prompt_redhat_setup
+++ b/Functions/Prompts/prompt_redhat_setup
@@ -3,7 +3,7 @@
# Styled like the default prompt in Red Hat 5.1
#
prompt_redhat_setup () {
- PS1="[%n@%m %1~]\\$ "
+ PS1='[%n@%m %1~]%(#.#.$) '
PS2="> "
prompt_opts=( cr percent )
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index b07eabb1f..66e73a7a5 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -155,8 +155,10 @@ Use prompt -h <theme> for help on specific themes.'
fi
# Reset some commonly altered bits to the default
- add-zsh-hook -D precmd "prompt_*_precmd"
- add-zsh-hook -D preexec "prompt_*_preexec"
+ local hook
+ for hook in chpwd precmd preexec periodic zshaddhistory zshexit; do
+ add-zsh-hook -D "${hook}" "prompt_*_${hook}"
+ done
set -A zle_highlight ${zle_highlight:#default:*}
(( ${#zle_highlight} )) || unset zle_highlight