overhaul prompt management; make it easier to add/remove things to {,r}prompt over time

This commit is contained in:
2023-06-30 17:05:18 -07:00
parent ed5afe0300
commit 798ced71aa
5 changed files with 51 additions and 11 deletions

View File

@@ -10,9 +10,9 @@ if [[ $cols -lt 80 ]]; then
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"
#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 () {
@@ -20,6 +20,7 @@ TRAPALRM () {
}
source ~/.local/share/zeesh/base/precmd.zsh
source ~/.local/share/zeesh/base/prompt.zsh
source ~/.local/share/zeesh/base/updates.zsh
# TODO: handle whether or not to load given modules]