sunhat/install/lazygit.sh

8 lines
376 B
Bash
Raw Normal View History

2024-05-25 15:52:00 -05:00
cd ~/Downloads
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
2024-05-26 17:19:33 -05:00
curl -sLo 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
2024-05-25 15:52:00 -05:00
sudo install lazygit /usr/local/bin
rm lazygit.tar.gz
cd -