mirror of
https://github.com/akelge/zsh
synced 2025-08-20 08:08:09 +00:00
migration
This commit is contained in:
19
zsh.d/prompts/prompt_minimal_setup
Normal file
19
zsh.d/prompts/prompt_minimal_setup
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
18
zsh.d/prompts/prompt_niceOld_setup
Normal file
18
zsh.d/prompts/prompt_niceOld_setup
Normal file
@ -0,0 +1,18 @@
|
||||
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 :
|
20
zsh.d/prompts/prompt_nice_setup
Normal file
20
zsh.d/prompts/prompt_nice_setup
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
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 :
|
19
zsh.d/prompts/prompt_plain_setup
Normal file
19
zsh.d/prompts/prompt_plain_setup
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
19
zsh.d/prompts/prompt_server_setup
Normal file
19
zsh.d/prompts/prompt_server_setup
Normal file
@ -0,0 +1,19 @@
|
||||
function prompt_server_setup {
|
||||
# Setup PROMPT
|
||||
if `fancyTerm`; then
|
||||
# We are on xterminal
|
||||
W="%n@%m:%."
|
||||
I="%m:%."
|
||||
L="%B@%m %~ %#%b "
|
||||
PS1="%{]2;$W%}%{]1;$I%}$L"
|
||||
unset W I L
|
||||
|
||||
else
|
||||
# We are not on xterminal
|
||||
PS1="%B%n@%m:%~ %#%b "
|
||||
fi
|
||||
}
|
||||
|
||||
prompt_server_setup
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
Reference in New Issue
Block a user