Remove useless fancyTerm, dust and repo_char functions

Removed functions, some prompts; rewrite prompts not to use fancyTerm
This commit is contained in:
Andrea Mistrali 2021-10-27 16:05:28 +02:00
parent 4bc0575d66
commit 360ae5fa01
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
9 changed files with 0 additions and 105 deletions

View File

@ -1,17 +1,5 @@
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 "
fi
}
prompt_minimal_setup

View File

@ -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 :

View File

@ -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 :

View File

@ -1,17 +1,5 @@
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 "
fi
}
prompt_plain_setup

View File

@ -1,17 +1,5 @@
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 "
fi
}
prompt_server_setup

View File

@ -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 :

View File

@ -1 +0,0 @@
hdu -s *

Binary file not shown.

View File

@ -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