Add minimal starship prompt to terminal

Co-authored-by: @tobi
This commit is contained in:
David Heinemeier Hansson 2025-08-17 09:59:44 -04:00
parent 7ca72c598a
commit 55330cce88
4 changed files with 29 additions and 1 deletions

17
config/starship.toml Normal file
View File

@ -0,0 +1,17 @@
add_newline = true
command_timeout = 200
format = "[$directory$git_branch]($style)$character"
[character]
error_symbol = "[✗](bold red)"
success_symbol = "[](bold #A5D6A7)[](bold #FFF59D)[](bold #FFAB91)"
[directory]
truncation_length = 2
truncation_symbol = "…/"
repo_root_style = "bold cyan"
repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) "
[git_branch]
format = "[$branch]($style) "
style = "bold"

View File

@ -2,6 +2,10 @@ if command -v mise &> /dev/null; then
eval "$(mise activate bash)"
fi
if command -v starship &> /dev/null; then
eval "$(starship init bash)"
fi
if command -v zoxide &> /dev/null; then
eval "$(zoxide init bash)"
fi

View File

@ -4,5 +4,6 @@ yay -S --noconfirm --needed \
wget curl unzip inetutils impala \
fd eza fzf ripgrep zoxide bat dust jq xmlstarlet \
wl-clipboard fastfetch btop \
man tldr less whois plocate bash-completion \
man tldr less whois plocate \
starship bash-completion \
alacritty

6
migrations/1755436367.sh Normal file
View File

@ -0,0 +1,6 @@
echo "Add minimal starship prompt to terminal"
if command -v starship &>/dev/null; then
yay -S --noconfirm starship
cp $OMARCHY_PATH/config/starship.toml ~/.config/starship.toml
fi