From 63ef2181ca9416f2b3b732665724e921f83e7610 Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 26 May 2025 20:00:11 +0200 Subject: [PATCH] Update install script to work with fish --- install.lazygit.sh | 8 -------- install.sh | 24 +++++++++--------------- 2 files changed, 9 insertions(+), 23 deletions(-) delete mode 100755 install.lazygit.sh diff --git a/install.lazygit.sh b/install.lazygit.sh deleted file mode 100755 index 1cf0de3..0000000 --- a/install.lazygit.sh +++ /dev/null @@ -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 diff --git a/install.sh b/install.sh index fd34d55..a8535a0 100755 --- a/install.sh +++ b/install.sh @@ -1,24 +1,18 @@ #!/bin/bash -sudo apt install zsh wget curl -cd "$(dirname "$0")" -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 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 +#sudo apt install wget curl +#cd "$(dirname "$0")" +#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 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 alias stow="./php/bin/stow" ./solve-stow.sh bin ./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?" -select yn in "Yes" "No"; do - case $yn in - Yes ) ./install.lazygit.sh; break;; - No ) exit;; - esac -done +curl -fsSL https://pixi.sh/install.sh | sh