Update install script to work with fish

This commit is contained in:
Tim
2025-05-26 20:00:11 +02:00
parent 8c0a67f515
commit 63ef2181ca
2 changed files with 9 additions and 23 deletions

View File

@ -1,8 +0,0 @@
#!/bin/bash
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
mv lazygit ~/.local/bin
rm lazygit.tar.gz

View File

@ -1,24 +1,18 @@
#!/bin/bash #!/bin/bash
sudo apt install zsh wget curl #sudo apt install wget curl
cd "$(dirname "$0")" #cd "$(dirname "$0")"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" #sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k #git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions #git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/agkozak/zsh-z ~/.oh-my-zsh/custom/plugins/zsh-z #git clone https://github.com/agkozak/zsh-z ~/.oh-my-zsh/custom/plugins/zsh-z
alias stow="./php/bin/stow" alias stow="./php/bin/stow"
./solve-stow.sh bin ./solve-stow.sh bin
./solve-stow.sh php ./solve-stow.sh php
./solve-stow.sh zsh ./solve-stow.sh fish
chsh -s $(which zsh) chsh -s $(which fish)
echo "Do you wish to install lazygit?" curl -fsSL https://pixi.sh/install.sh | sh
select yn in "Yes" "No"; do
case $yn in
Yes ) ./install.lazygit.sh; break;;
No ) exit;;
esac
done