fix prompt builder overriding mobile prompts
This commit is contained in:
parent
e29862ff82
commit
96c7934a83
@ -20,5 +20,19 @@ function rprompt_builder () {
|
|||||||
print "${result}"
|
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
|
||||||
|
}
|
16
zeesh.zsh
16
zeesh.zsh
@ -3,22 +3,6 @@ source ~/.local/share/zeesh/base/zeesh.zsh
|
|||||||
|
|
||||||
ticker_message "zeesh: bootstrap"
|
ticker_message "zeesh: bootstrap"
|
||||||
|
|
||||||
if [[ $cols -lt 80 ]]; then
|
|
||||||
if [[ $(uname -o) == "Android" ]]; then
|
|
||||||
hostemoji="📞"
|
|
||||||
else
|
|
||||||
hostemoji="🖥"
|
|
||||||
fi
|
|
||||||
PROMPT="👤%{$fg_bold[white]%}@${hostemoji} %~ %# %{$reset_color%}"
|
|
||||||
#else
|
|
||||||
# PROMPT="%{$fg_bold[cyan]%}%n%{$fg_bold[white]%}@%{$fg_bold[magenta]%}%m %{$fg_bold[white]%}%~ %# %{$reset_color%}"
|
|
||||||
# RPROMPT="%(?..%{$fg[red]%}%? )$RPROMPT"
|
|
||||||
fi
|
|
||||||
TMOUT=60
|
|
||||||
TRAPALRM () {
|
|
||||||
zle reset-prompt
|
|
||||||
}
|
|
||||||
|
|
||||||
source ~/.local/share/zeesh/base/precmd.zsh
|
source ~/.local/share/zeesh/base/precmd.zsh
|
||||||
source ~/.local/share/zeesh/base/prompt.zsh
|
source ~/.local/share/zeesh/base/prompt.zsh
|
||||||
source ~/.local/share/zeesh/base/updates.zsh
|
source ~/.local/share/zeesh/base/updates.zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user