Skip to content

Instantly share code, notes, and snippets.

@nissan
Created July 3, 2023 19:37
Show Gist options
  • Save nissan/13d8214e4792697dbe33935533910479 to your computer and use it in GitHub Desktop.
Save nissan/13d8214e4792697dbe33935533910479 to your computer and use it in GitHub Desktop.
Configure the Github CLI
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y)
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/g>&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg>&& sudo apt update \
&& sudo apt install gh -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment