[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

@@ -3,4 +3,9 @@ mkdir -p "${XDG_STATE_HOME}"/bash
export HISTFILE="${XDG_STATE_HOME}"/bash/history
# Prompt
export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] "
if [ -x $(command -v starship) ]; then
eval "$(starship init bash)"
export STARSHIP_CACHE="${XDG_CACHE_HOME}"/starship
else
export PS1="\[\e[0;90m\][\[\e[0;37m\]\u\[\e[0;37m\]@\[\e[0;37m\]\H\[\e[0;90m\]] \[\e[0;90m\](\[\e[0;37m\]\W\[\e[0;90m\]) \[\e[0;37m\]\$\[\e[0m\] "
fi