zeesh/zeesh.zsh

32 lines
810 B
Bash
Raw Normal View History

2020-04-20 02:05:56 -07:00
source ~/.local/share/zeesh/base/zeesh.zsh
ticker_message "zeesh: bootstrap"
2020-10-21 23:14:06 -07:00
cols=$(stty -a | grep -Po '(?<=columns )\d+' | tr -d "\n")
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%}"
fi
TMOUT=60
TRAPALRM () {
zle reset-prompt
}
2020-04-20 02:05:56 -07:00
2020-04-21 16:35:43 -07:00
source ~/.local/share/zeesh/base/precmd.zsh
2020-04-21 16:39:58 -07:00
source ~/.local/share/zeesh/base/updates.zsh
2020-04-21 16:35:43 -07:00
2020-06-23 21:51:10 -07:00
# TODO: handle whether or not to load given modules]
for module in ~/.local/share/zeesh/modules/*.zsh; do
ticker_message "zeesh: loading module ${module}"
source ${module}
done
2020-04-20 02:05:56 -07:00
ticker_finish