mirror of https://github.com/akelge/zsh
Added prompt for servers
This commit is contained in:
parent
0a42992bb8
commit
f23dde3e84
|
@ -0,0 +1,19 @@
|
|||
function prompt_server_setup {
|
||||
# Setup PROMPT
|
||||
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
|
||||
# We are on xterminal
|
||||
W="%n@%m:%."
|
||||
I="%m:%."
|
||||
L="%B@%m %~ %#%b "
|
||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
||||
unset W I L
|
||||
|
||||
else
|
||||
# We are not on xterminal
|
||||
PS1="%B%n@%m:%~ %#%b "
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_server_setup
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
Loading…
Reference in New Issue