From ac5c0d227fce8a9c6ec929c74f4c9d9a0078a657 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Tue, 29 Nov 2016 17:59:07 +0100 Subject: [PATCH 1/2] Cleanup zshrc, changed server prompt --- zsh.d/prompts/prompt_server_setup | 4 ++-- zshrc | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/zsh.d/prompts/prompt_server_setup b/zsh.d/prompts/prompt_server_setup index b055f0a..5a66234 100644 --- a/zsh.d/prompts/prompt_server_setup +++ b/zsh.d/prompts/prompt_server_setup @@ -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 } diff --git a/zshrc b/zshrc index e6841dc..cf0bb72 100644 --- a/zshrc +++ b/zshrc @@ -17,8 +17,6 @@ KERNEL=`uname -s` LIBRARY=${BASE}/zsh.d KERNLIB=${LIBRARY}/${KERNEL} -echo $KERNEL - function loadRC { # [ -d $1 ] && cd $1 || exit 1 # From b075ab24075b21e36c7f23bd360b6807ffcf9694 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Tue, 29 Nov 2016 17:59:59 +0100 Subject: [PATCH 2/2] Added "old" server prompt --- zsh.d/prompts/prompt_server2_setup | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 zsh.d/prompts/prompt_server2_setup diff --git a/zsh.d/prompts/prompt_server2_setup b/zsh.d/prompts/prompt_server2_setup new file mode 100644 index 0000000..593f23e --- /dev/null +++ b/zsh.d/prompts/prompt_server2_setup @@ -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 :