Skip to content

Instantly share code, notes, and snippets.

@yankay
Created December 5, 2023 10:47
Show Gist options
  • Save yankay/98d99bedba9a919d3e71756d61eca3f9 to your computer and use it in GitHub Desktop.
Save yankay/98d99bedba9a919d3e71756d61eca3f9 to your computer and use it in GitHub Desktop.
快速安装 lazygit
cd /tmp
export LAZYGIT_VERSION=$(curl -s https://api.github.com/repos/jesseduffield/lazygit/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' )
export LAZYGIT_VERSION=${LAZYGIT_VERSION:1:100}
wget https://files.m.daocloud.io/github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz
tar -zxvf lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz
chmod +x lazygit
mv lazygit /usr/local/bin/lazygit
lazygit -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment