summaryrefslogtreecommitdiff
path: root/Functions/Prompts/prompt_zefram_setup
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-17 22:42:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-17 22:42:16 +0000
commitc894f695cc02f16af429c7506bb78354dcd9a1e3 (patch)
tree315daebee1a9ebc507790baf516863b0ff450f66 /Functions/Prompts/prompt_zefram_setup
parentadeceae8bfb6ed0a3fdea87cc4483c4d990f83fe (diff)
downloadzsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.tar.gz
zsh-c894f695cc02f16af429c7506bb78354dcd9a1e3.zip
25095: thorough modernization of prompt theme system
Diffstat (limited to 'Functions/Prompts/prompt_zefram_setup')
-rw-r--r--Functions/Prompts/prompt_zefram_setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Prompts/prompt_zefram_setup b/Functions/Prompts/prompt_zefram_setup
index 7b7eefb28..a138a520b 100644
--- a/Functions/Prompts/prompt_zefram_setup
+++ b/Functions/Prompts/prompt_zefram_setup
@@ -12,8 +12,8 @@ function prompt_zefram_setup {
PS2='%(4_:... :)%3_> '
prompt_opts=( cr subst percent )
- precmd () { prompt_zefram_precmd }
- preexec () { }
+
+ add-zsh-hook precmd prompt_zefram_precmd
}
prompt_zefram_setup "$@"