[starship] Add starship package

This commit is contained in:
2026-01-12 00:33:10 +00:00
parent 171a578d61
commit a6a48cb041
4 changed files with 149 additions and 3 deletions

View File

@@ -6,5 +6,11 @@ SAVEHIST=$HISTSIZE
setopt EXTENDED_HISTORY
# Prompt
setopt PROMPT_SUBST
export PS1='%F{8}[%F{white}%n@%m%F{8}] (%F{white}%1~%F{8}) %F{yellow}$AWS_PROFILE%F{white} %#%f '
# Use starship if installed, otherwise use a simple prompt
if [ -x $(command -v starship) ]; then
eval "$(starship init zsh)"
export STARSHIP_CACHE="${XDG_CACHE_HOME}"/starship
else
setopt PROMPT_SUBST
export PS1='%F{8}[%F{white}%n@%m%F{8}] (%F{white}%1~%F{8}) %F{yellow}$AWS_PROFILE%F{white} %#%f '
fi