diff --git a/install_software.sh b/install_software.sh index 571fdf5..73fdfd7 100755 --- a/install_software.sh +++ b/install_software.sh @@ -90,6 +90,16 @@ then rm -f lf-linux-amd64.tar.gz fi +# install lazygit +if ! command -v lazygit &> /dev/null +then + 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/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" + tar xf lazygit.tar.gz lazygit + sudo install lazygit /usr/local/bin + rm -rf ./lazygit* +fi + # install opencommit if ! command -v opencommit &> /dev/null then