Add lazygit

This commit is contained in:
Digital Studium 2024-03-17 12:22:42 +03:00
parent 99325028cd
commit 21344a8114
1 changed files with 10 additions and 0 deletions

View File

@ -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