From bbb8e9f79dddc856133064059bb2e70d7b421911 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 8 Nov 2025 17:58:52 +0100 Subject: [PATCH] Set up starship prompt from install scripts --- install_root.sh | 5 +++-- install_user.sh | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/install_root.sh b/install_root.sh index a6c7fb4..8c93dc3 100755 --- a/install_root.sh +++ b/install_root.sh @@ -54,13 +54,14 @@ systemctl enable \ NetworkManager.service smtpd.service systemctl mask systemd-networkd.service # We have NetworkManager for this -# Install ZSH shell -pacman -S --noconfirm --needed zsh +# Install ZSH shell & starship prompt +pacman -S --noconfirm --needed zsh starship cp -ra home/.config/shell ~/.config rm -rf ~/.config/zsh/ || true # in case there is already some zsh config cp -ra home/.config/zsh ~/.config rm -rf ~/.config/zsh/.zgenom git clone https://github.com/jandamm/zgenom ~/.config/zsh/.zgenom +cp home/.config/starship.toml ~/.config chsh -s /usr/bin/zsh root echo "" diff --git a/install_user.sh b/install_user.sh index 70ecd3d..0eb651a 100755 --- a/install_user.sh +++ b/install_user.sh @@ -70,13 +70,13 @@ paru --gendb mkdir -p ~/.config mkdir -p ~/.local/{share,state,bin} -# Copy over zsh configuration +# Copy over zsh & starship configuration # -# Note that this assumes you've ran install_root.sh, whcih created /etc/zsh/zshenv +# Note that this assumes you've ran install_root.sh, which created /etc/zsh/zshenv # with $ZOOTDIR exported. If you haven't done that, you'll want to copy it over from # my dotfiles. If you can't (don't have root rights), it's also possible to use ~/.zshenv, # which you can symlink to ~/.config/zsh/.zshenv. -pacman -S --noconfirm --needed zsh +pacman -S --noconfirm --needed zsh starship cp -ra home/.config/shell ~/.config rm -rf ~/.config/zsh/ || true # in case there is already some zsh config cp -ra home/.config/zsh ~/.config @@ -84,6 +84,7 @@ rm -rf ~/.config/zsh/.zgenom git clone https://github.com/jandamm/zgenom ~/.config/zsh/.zgenom mkdir -p ~/.cache/zsh touch ~/.cache/zsh/history +cp home/.config/starship.toml ~/.config chsh -s /usr/bin/zsh "$USER" # GnuPG