mirror of
https://github.com/akelge/zsh
synced 2025-07-03 13:09:07 +00:00
migration
This commit is contained in:
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 :
|
Reference in New Issue
Block a user