Files
omakub/install/terminal/app-lazygit.sh
David Heinemeier Hansson e8bb1c3c5d Make sure empty config exists for running lazygit first through neovim
Otherwise you have to manually start lazygit first.
2025-03-17 10:31:44 +01:00

10 lines
440 B
Bash

cd /tmp
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
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
sudo install lazygit /usr/local/bin
rm lazygit.tar.gz lazygit
mkdir -p ~/.config/lazygit/
touch ~/.config/lazygit/config.yml
cd -