mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[starship] Add starship package
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user