summaryrefslogtreecommitdiff
path: root/etc/prompt
blob: 2a1f38fc2aa51f89ef4579c33687d38100658c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## Prompt
## vim:ft=zsh
# RPS1 is on the right side of the terminal
# The \ek\e\\ is for screen's 'shelltitle'

user="${ps_yellow}%n"
at="@"
host="%m"
dir="${ps_reset}%25>…>\$(rtab -f)%>>"
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