This commit is contained in:
Andrea Mistrali 2016-12-14 07:31:47 +01:00
commit 96b3fb57eb
3 changed files with 21 additions and 4 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 :

View File

@ -4,13 +4,13 @@ if `fancyTerm`; then
# We are on xterminal
W="%n@%m:%."
I="%m:%."
L="%B@%m %4(~:...:)%3~ %#%b "
L="%T %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 "
PS1="%T %B%n@%m:%~ %#%b "
fi
}

2
zshrc
View File

@ -17,8 +17,6 @@ KERNEL=`uname -s`
LIBRARY=${BASE}/zsh.d
KERNLIB=${LIBRARY}/${KERNEL}
echo $KERNEL
function loadRC {
# [ -d $1 ] && cd $1 || exit 1
#