mirror of https://github.com/akelge/zsh
Remove useless fancyTerm, dust and repo_char functions
Removed functions, some prompts; rewrite prompts not to use fancyTerm
This commit is contained in:
parent
4bc0575d66
commit
360ae5fa01
|
@ -1,17 +1,5 @@
|
||||||
function prompt_minimal_setup {
|
function prompt_minimal_setup {
|
||||||
# Setup PROMPT
|
|
||||||
if `fancyTerm`; then
|
|
||||||
# We are on xterminal
|
|
||||||
W="%n@%m:%."
|
|
||||||
I="%m:%."
|
|
||||||
L="%B%. %#%b "
|
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1="%B%. %#%b "
|
PS1="%B%. %#%b "
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_minimal_setup
|
prompt_minimal_setup
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
function prompt_niceOld_setup {
|
|
||||||
if `fancyTerm`; then
|
|
||||||
W="::: %n at %m in %. :::"
|
|
||||||
I="%m::%."
|
|
||||||
L="%B%K{blue}%F{white}@%m::%2~ %f%k
|
|
||||||
%F{yellow}%#%f%b "
|
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1="%B%K{blue}%F{white}[%l] %n@%m:%~ %f%k%F{yellow}%#%f%b "
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt_niceOld_setup
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
|
|
@ -1,20 +0,0 @@
|
||||||
|
|
||||||
function prompt_nice_setup {
|
|
||||||
if `fancyTerm`; then
|
|
||||||
title="::: %n at %m in %. :::"
|
|
||||||
icon="%m::%."
|
|
||||||
prompt_='$FX[bold]$FX[italic]$BG[062]@%m::%2~$FX[reset]
|
|
||||||
$FX[bold]$(repo_char)$FG[220]%#$FX[reset] '
|
|
||||||
|
|
||||||
PS1="%{]2;$title%}%{]1;$icon%}$prompt_"
|
|
||||||
unset title icon prompt_
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1='%B%K{blue}%F{white}[%l] $(repo_char)%n@%m:%~ %f%k%F{yellow}%#%f%b '
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt_nice_setup
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
|
|
@ -1,17 +1,5 @@
|
||||||
function prompt_plain_setup {
|
function prompt_plain_setup {
|
||||||
# Setup PROMPT
|
|
||||||
if `fancyTerm`; then
|
|
||||||
# We are on xterminal
|
|
||||||
W="%n@%m:%."
|
|
||||||
I="%m:%."
|
|
||||||
L="%B[%l] %~ %#%b "
|
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1="%B[%l] %n@%m:%~ %#%b "
|
PS1="%B[%l] %n@%m:%~ %#%b "
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_plain_setup
|
prompt_plain_setup
|
||||||
|
|
|
@ -1,17 +1,5 @@
|
||||||
function prompt_server_setup {
|
function prompt_server_setup {
|
||||||
# Setup PROMPT
|
|
||||||
if `fancyTerm`; then
|
|
||||||
# We are on xterminal
|
|
||||||
W="%n@%m:%."
|
|
||||||
I="%m:%."
|
|
||||||
L="%T %B@%m %4(~:...:)%3~ %#%b "
|
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1="%T %B%n@%m:%~ %#%b "
|
PS1="%T %B%n@%m:%~ %#%b "
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_server_setup
|
prompt_server_setup
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
function prompt_minimal_setup {
|
|
||||||
# Setup PROMPT
|
|
||||||
if `fancyTerm`; then
|
|
||||||
# We are on xterminal
|
|
||||||
W="%n@%m:%."
|
|
||||||
I="%m:%."
|
|
||||||
L="%B%3(~:...:)%2~ %#%b "
|
|
||||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
|
||||||
unset W I L
|
|
||||||
|
|
||||||
else
|
|
||||||
# We are not on xterminal
|
|
||||||
PS1="%B%. %#%b "
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt_minimal_setup
|
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
|
|
@ -1 +0,0 @@
|
||||||
hdu -s *
|
|
Binary file not shown.
|
@ -1,11 +0,0 @@
|
||||||
fancyterms=('xterm' 'rxvt' 'screen')
|
|
||||||
|
|
||||||
for t in $fancyterms; do
|
|
||||||
if [ "${TERM#${t}}" != "$TERM" ]; then
|
|
||||||
unset fancyterms
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
unset fancyterms
|
|
||||||
return 1
|
|
Loading…
Reference in New Issue