overhaul prompt management; make it easier to add/remove things to {,r}prompt over time
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user