summaryrefslogtreecommitdiff
path: root/etc/prompt
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-12 22:02:20 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-12 22:02:20 +0100
commitc7927ea61730bd6d8a283078d89dffdca08535cd (patch)
tree2f6098a2aa4070d9d35c6a4c1cf9614a8da9c0f6 /etc/prompt
parentd3d4767fb5ba7e036cdbb8e351f678e54e95078f (diff)
Merge stuff into .zshrc
Diffstat (limited to 'etc/prompt')
-rw-r--r--etc/prompt38
1 files changed, 0 insertions, 38 deletions
diff --git a/etc/prompt b/etc/prompt
deleted file mode 100644
index afc6365..0000000
--- a/etc/prompt
+++ /dev/null
@@ -1,38 +0,0 @@
-## Prompt
-## vim:ft=zsh
-# RPS1 is on the right side of the terminal
-# The \ek\e\\ is for screen's 'shelltitle'
-
-# psvar[1] = directory info
-# psvar[2] = rtab (current directory)
-
-typeset -A ps rps
-
-ps=(
- host "%F{yellow}%m"
- dir "%F{default}%30<…<%2v%>>"
- sign "%(!.%F{red}.%F{green})%(?.%(!.#.>).%?)%F{default}"
- screen $'%{\ek\e\\%}'
-)
-
-rps=(
- start_always "%F{yellow}["
- start_screen "%(1V.%F{yellow}["
- dirinfo "%F{default}%1v"
- time '%T'
- end_always "%F{yellow}]%F{default}"
- end_screen "%(1V.%F{yellow}]%F{default}.)"
-)
-
-PS1="${ps[host]} ${ps[dir]} ${ps[sign]} ${ps[screen]}"
-
-if [[ $TERM == screen ]] {
- RPS1="${rps[start_screen]}${rps[dirinfo]}${rps[end_screen]}"
-} else {
- RPS1="${rps[start_always]}${rps[dirinfo]}${rps[time]}${rps[end_always]}"
-}
-
-unset ps rps
-
-zstyle ':prompt:rtab' fish yes
-zstyle ':prompt:rtab' nameddirs yes