Add fallback prompt for when Starship isn't installed

This commit is contained in:
Ben Kreeger 2025-09-27 19:39:10 -05:00
parent 94dea57868
commit 41f01fed2c
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
3 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,7 @@ font-synthetic-style = no-bold, no-bold-italic
# Window style
background-blur = true
background-opacity = 0.8
background-opacity = 0.88
theme = dark:catppuccin-mocha.conf, light:catppuccin-latte.conf
window-padding-color = extend
window-padding-x = 12,0

7
zsh/zprompt Normal file
View File

@ -0,0 +1,7 @@
# vim: filetype=zsh
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '

View File

@ -49,6 +49,8 @@ fi
if [[ -x "$(command -v starship)" ]]; then
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
eval "$(starship init zsh)"
else
source $SCRIPTPATH/zprompt
fi
# asdf