install starship

This commit is contained in:
BlackNet Dev
2022-12-24 16:12:06 +01:00
parent c59b9c3eb7
commit 648420ce74
+7 -1
View File
@@ -1,12 +1,18 @@
#!/usr/bin/bash #!/usr/bin/bash
cd ~ 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 # check if oh my zsh installed
if [ ! -d ~/.oh-my-zsh ]; then if [ ! -d ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
fi fi
# remove Powerlevel10k theme # remove Powerlevel10k zshrc integration (works only with my installation otherwise)
if [ -n $(sed -n '/Enable Powerlevel10k instant prompt/=' ~/.zshrc) ]; then if [ -n $(sed -n '/Enable Powerlevel10k instant prompt/=' ~/.zshrc) ]; then
sed -i '1,6d' ~/.zshrc sed -i '1,6d' ~/.zshrc
fi fi