Add fallback prompt for when Starship isn't installed
This commit is contained in:
parent
94dea57868
commit
41f01fed2c
@ -9,7 +9,7 @@ font-synthetic-style = no-bold, no-bold-italic
|
|||||||
|
|
||||||
# Window style
|
# Window style
|
||||||
background-blur = true
|
background-blur = true
|
||||||
background-opacity = 0.8
|
background-opacity = 0.88
|
||||||
theme = dark:catppuccin-mocha.conf, light:catppuccin-latte.conf
|
theme = dark:catppuccin-mocha.conf, light:catppuccin-latte.conf
|
||||||
window-padding-color = extend
|
window-padding-color = extend
|
||||||
window-padding-x = 12,0
|
window-padding-x = 12,0
|
||||||
|
|||||||
7
zsh/zprompt
Normal file
7
zsh/zprompt
Normal 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$ '
|
||||||
@ -49,6 +49,8 @@ fi
|
|||||||
if [[ -x "$(command -v starship)" ]]; then
|
if [[ -x "$(command -v starship)" ]]; then
|
||||||
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
|
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
else
|
||||||
|
source $SCRIPTPATH/zprompt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# asdf
|
# asdf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user