From 648420ce74f7feff98da73106396e5f91d6b4e28 Mon Sep 17 00:00:00 2001 From: BlackNet Dev Date: Sat, 24 Dec 2022 16:12:06 +0100 Subject: [PATCH] install starship --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4bbee02..321e807 100644 --- a/install.sh +++ b/install.sh @@ -1,12 +1,18 @@ #!/usr/bin/bash cd ~ +cp ~/.zshrc ~/.zshrc.bak + +if [ ! -f $(which starship 2>/dev/null) ]; then + echo "Installing starship..." + curl -sS https://starship.rs/install.sh | sh +fi # check if oh my zsh installed if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended fi -# remove Powerlevel10k theme +# remove Powerlevel10k zshrc integration (works only with my installation otherwise) if [ -n $(sed -n '/Enable Powerlevel10k instant prompt/=' ~/.zshrc) ]; then sed -i '1,6d' ~/.zshrc fi