Skip to content

Instantly share code, notes, and snippets.

@hagope
Last active March 21, 2022 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagope/c56734a5ecd6ce1426eeb7f4f1b532ab to your computer and use it in GitHub Desktop.
Save hagope/c56734a5ecd6ce1426eeb7f4f1b532ab to your computer and use it in GitHub Desktop.
#!/bin/bash
# install lazy git
# https://github.com/jesseduffield/lazygit#ubuntu
sudo add-apt-repository ppa:lazygit-team/release
sudo apt-get update
sudo apt-get install lazygit
# install gh cli
# https://github.com/cli/cli/blob/trunk/docs/install_linux.md
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
echo "alias lg='lazygit'" >> ~/.bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment