2021-12-08 09:38:24 -06:00
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
|
|
|
|
2022-07-31 11:40:45 -05:00
|
|
|
if is-executable sheldon; then
|
|
|
|
eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)"
|
|
|
|
fi
|
2021-12-08 09:38:24 -06:00
|
|
|
|
2022-08-01 16:17:58 -05:00
|
|
|
is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)"
|
2022-07-31 11:40:45 -05:00
|
|
|
|
2022-08-01 16:17:58 -05:00
|
|
|
if is-executable starship; then
|
|
|
|
eval "$(starship init zsh)"
|
|
|
|
else
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
precmd() { vcs_info }
|
2022-02-08 09:38:03 -06:00
|
|
|
|
2022-08-01 16:17:58 -05:00
|
|
|
zstyle ':vcs_info:git:*' formats '%b '
|
|
|
|
|
|
|
|
setopt PROMPT_SUBST
|
|
|
|
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
|
|
|
fi
|