From 41f01fed2c8e117d18d86a37bd37171562aaa445 Mon Sep 17 00:00:00 2001 From: Ben Kreeger Date: Sat, 27 Sep 2025 19:39:10 -0500 Subject: [PATCH] Add fallback prompt for when Starship isn't installed --- ghostty/config | 2 +- zsh/zprompt | 7 +++++++ zsh/zshrc | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 zsh/zprompt diff --git a/ghostty/config b/ghostty/config index 5f5169f..42ac008 100644 --- a/ghostty/config +++ b/ghostty/config @@ -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 diff --git a/zsh/zprompt b/zsh/zprompt new file mode 100644 index 0000000..9141d85 --- /dev/null +++ b/zsh/zprompt @@ -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$ ' diff --git a/zsh/zshrc b/zsh/zshrc index 9fae579..e764835 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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