fix prompt builder overriding mobile prompts
This commit is contained in:
@@ -20,5 +20,19 @@ function rprompt_builder () {
|
||||
print "${result}"
|
||||
}
|
||||
|
||||
PROMPT='$(prompt_builder)'
|
||||
RPROMPT='$(rprompt_builder)'
|
||||
|
||||
if [[ $cols -lt 80 ]]; then
|
||||
if [[ $(uname -o) == "Android" ]]; then
|
||||
hostemoji="📞"
|
||||
else
|
||||
hostemoji="🖥"
|
||||
fi
|
||||
PROMPT="👤%{$fg_bold[white]%}@${hostemoji} %~ %# %{$reset_color%}"
|
||||
else
|
||||
PROMPT='$(prompt_builder)'
|
||||
RPROMPT='$(rprompt_builder)'
|
||||
fi
|
||||
TMOUT=60
|
||||
TRAPALRM () {
|
||||
zle reset-prompt
|
||||
}
|
Reference in New Issue
Block a user