fix formatting in prompt

This commit is contained in:
Daylin Morgan 2022-08-01 21:34:07 +00:00
parent 9cba7cfb08
commit 28ff4f60e9

View file

@ -1,8 +1,12 @@
#!/usr/bin/env zsh
autoload -Uz compinit autoload -Uz compinit
compinit compinit
if is-executable sheldon; then if is-executable sheldon; then
eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)" eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)"
else
echo "no sheldon = no shell extensions loaded"
fi fi
is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)" is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)"
@ -10,8 +14,12 @@ is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)"
if is-executable starship; then if is-executable starship; then
eval "$(starship init zsh)" eval "$(starship init zsh)"
else else
echo "no starship = dumber prompt"
autoload -Uz vcs_info autoload -Uz vcs_info
precmd() { vcs_info } precmd() {
vcs_info
}
zstyle ':vcs_info:git:*' formats '%b ' zstyle ':vcs_info:git:*' formats '%b '