Skip to content

Instantly share code, notes, and snippets.

@iamtalhaasghar
Last active August 16, 2022 06:24
Show Gist options
  • Save iamtalhaasghar/c2121d80366a693e438376d0de208d9c to your computer and use it in GitHub Desktop.
Save iamtalhaasghar/c2121d80366a693e438376d0de208d9c to your computer and use it in GitHub Desktop.
A simple shell script to install go and lazygit on a linux system.
wget -v https://go.dev/dl/go1.18.5.linux-amd64.tar.gz
rm -rvf /usr/local/go && tar -C /usr/local -xvzf go1.18.5.linux-amd64.tar.gz
cd /opt
git clone https://github.com/jesseduffield/lazygit.git
cd lazygit
/usr/local/go/bin/go install
echo "alias lg='$HOME/go/bin/lazygit'" >> ~/.bashrc
$HOME/go/bin/lazygit --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment