summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-09-07 18:25:18 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-09-07 18:25:18 +0200
commit86421496cb9213cc7e7e12b3c363ff967d3cd0b5 (patch)
tree01e8509feec2eb0bf7eec659f2340f92fc19bc90
parent27206264a140feaa36ae69bcef97bd4f3c233e8c (diff)
prompt: Made it more flexible
-rw-r--r--etc/prompt13
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/prompt b/etc/prompt
index 74a8029..6e108e6 100644
--- a/etc/prompt
+++ b/etc/prompt
@@ -2,5 +2,16 @@
## vim:ft=zsh
# RPS1 is on the right side of the terminal
# The \ek\e\\ is for screen's 'shelltitle'
-PS1="${ps_yellow}%n@%m${ps_reset} %25>…>%1~%>> %(!.${ps_red}#.${ps_green}>)${ps_reset} "$'%{\ek\e\\%}'
+
+user="${ps_yellow}%n"
+at="@"
+host="%m"
+dir="${ps_reset}%25>…>%1~%>>"
+sign="%(!.${ps_red}#.${ps_green}>)${ps_reset}"
+screen=$'%{\ek\e\\%}'
+
+PS1="${user}${at}${host} ${dir} ${sign} ${screen}"
RPS1="${ps_yellow}[${ps_info}%1v${ps_yellow}%T]${ps_reset}"
+
+unset user at host
+unset dir sign screen