Compare commits
No commits in common. "bc14813bbb9ccf247646ac660a0539ad1cc64434" and "e29862ff82d8ba8318a368e0b06dcf1f19940cd7" have entirely different histories.
bc14813bbb
...
e29862ff82
@ -20,19 +20,5 @@ function rprompt_builder () {
|
||||
print "${result}"
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
}
|
@ -10,7 +10,7 @@ function zeesh_update () {
|
||||
|
||||
_zshrc_updates_pending=0
|
||||
|
||||
if type cmp &> /dev/null; then
|
||||
if type md5sum &> /dev/null; then
|
||||
cmp -s ~/.zshrc ~/.local/share/zeesh/zshrc-stub
|
||||
if [[ $? -eq 1 ]]; then
|
||||
cp ~/.local/share/zeesh/zshrc-stub ~/.zshrc
|
||||
|
16
zeesh.zsh
16
zeesh.zsh
@ -3,6 +3,22 @@ source ~/.local/share/zeesh/base/zeesh.zsh
|
||||
|
||||
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/prompt.zsh
|
||||
source ~/.local/share/zeesh/base/updates.zsh
|
||||
|
Loading…
Reference in New Issue
Block a user