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