From 21344a811433e5185ab06220a533582cb319cdaa Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sun, 17 Mar 2024 12:22:42 +0300 Subject: [PATCH] Add lazygit --- install_software.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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