mirror of
https://github.com/akelge/zsh
synced 2025-07-04 05:29:06 +00:00
Merge branch 'master' of https://github.com/akelge/zsh
This commit is contained in:
19
zsh.d/prompts/prompt_server2_setup
Normal file
19
zsh.d/prompts/prompt_server2_setup
Normal 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 :
|
@ -4,13 +4,13 @@ if `fancyTerm`; then
|
|||||||
# We are on xterminal
|
# We are on xterminal
|
||||||
W="%n@%m:%."
|
W="%n@%m:%."
|
||||||
I="%m:%."
|
I="%m:%."
|
||||||
L="%B@%m %4(~:...:)%3~ %#%b "
|
L="%T %B@%m %4(~:...:)%3~ %#%b "
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
PS1="%{]2;$W%}%{]1;$I%}$L"
|
||||||
unset W I L
|
unset W I L
|
||||||
|
|
||||||
else
|
else
|
||||||
# We are not on xterminal
|
# We are not on xterminal
|
||||||
PS1="%B%n@%m:%~ %#%b "
|
PS1="%T %B%n@%m:%~ %#%b "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user