Added "old" server prompt

This commit is contained in:
Andrea Mistrali 2016-11-29 17:59:59 +01:00
parent ac5c0d227f
commit b075ab2407
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
function prompt_server2_setup {
# Setup PROMPT
if `fancyTerm`; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."
L="%B@%m %4(~:...:)%3~ %#%b "
PS1="%{]2;$W%}%{]1;$I%}$L"
unset W I L
else
# We are not on xterminal
PS1="%B%n@%m:%~ %#%b "
fi
}
prompt_server2_setup
# vim: set ts=4 sw=4 tw=0 ft=zsh :