From 44acd484dd46bb09c9878fd8aa14aeb9c2c5b93b Mon Sep 17 00:00:00 2001 From: Jonas H Date: Sat, 7 Mar 2026 22:16:33 +0100 Subject: [PATCH] starship --- install.sh | 19 +++++++++++++++++++ starship/.config/starship.toml | 0 2 files changed, 19 insertions(+) create mode 100644 starship/.config/starship.toml diff --git a/install.sh b/install.sh index b619232..eee6471 100755 --- a/install.sh +++ b/install.sh @@ -29,6 +29,8 @@ case "$DISTRO" in fedora) DNF_PACKAGES=( stow + # prompt + starship # sway ecosystem swayidle # bar & notifications @@ -58,6 +60,8 @@ case "$DISTRO" in arch) PACMAN_PACKAGES=( stow + # prompt + starship # sway ecosystem swayidle # bar & notifications @@ -134,6 +138,21 @@ else echo "JetBrains Mono Nerd Font already installed, skipping." fi +# --------------------------------------------------------------------------- +# Configure shell +# --------------------------------------------------------------------------- + +echo "" +echo "Configuring zsh..." + +# Ensure starship is initialized in .zshrc +if ! grep -q 'eval "$(starship init zsh)"' "$HOME/.zshrc" 2>/dev/null; then + echo 'eval "$(starship init zsh)"' >> "$HOME/.zshrc" + echo " Added starship initialization to ~/.zshrc" +else + echo " Starship already configured in ~/.zshrc" +fi + # --------------------------------------------------------------------------- # Stow all packages # --------------------------------------------------------------------------- diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml new file mode 100644 index 0000000..e69de29