install starship
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user