Files
omakub/install/terminal/app-lazygit.sh
David Heinemeier Hansson fd25eec923 Merge pull request #412 from Pauloparakleto/lazygit-config
set config folder for lazygit
2025-04-04 11:09:01 +02:00

11 lines
483 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
CONFIG_DIR="$HOME/.config/lazygit" lazygit
rm lazygit.tar.gz lazygit
mkdir -p ~/.config/lazygit/
touch ~/.config/lazygit/config.yml
cd -