Update install script to work with fish
This commit is contained in:
@ -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
|
|
24
install.sh
24
install.sh
@ -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
|
|
||||||
|
Reference in New Issue
Block a user