summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-03-08 13:57:13 +0100
committerTobias Klauser <tklauser@distanz.ch>2011-03-08 13:57:13 +0100
commit25aa705bc21c3941020361bfd78c8174df4cd46b (patch)
tree9b0cd4e444f55352eececb97cedc632ea1ed9abf
parent85becf3e448456aea56287dda818576f18309f4b (diff)
define PS2, PS3, PS4, setopt prompt_subst move
-rw-r--r--.zsh/zshrc/00_opts2
-rw-r--r--.zsh/zshrc/80_prompt5
2 files changed, 5 insertions, 2 deletions
diff --git a/.zsh/zshrc/00_opts b/.zsh/zshrc/00_opts
index aadce9e..9d4dc14 100644
--- a/.zsh/zshrc/00_opts
+++ b/.zsh/zshrc/00_opts
@@ -14,4 +14,6 @@ setopt auto_cd
# Silence!
setopt nobeep
+setopt prompt_subst
+
# vim:ft=zsh
diff --git a/.zsh/zshrc/80_prompt b/.zsh/zshrc/80_prompt
index b70e0ae..858c166 100644
--- a/.zsh/zshrc/80_prompt
+++ b/.zsh/zshrc/80_prompt
@@ -13,9 +13,10 @@ if autoload promptinit && promptinit 2>/dev/null ; then
promptinit
fi
-setopt prompt_subst
-
EXITCODE="%(?..%?%1v )"
+PS2='\`%_> '
+PS3='?# '
+PS4='+%N:%i:%_> '
# set variable debian_chroot if running in a chroot with /etc/debian_chroot
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then