Last active
December 21, 2021 15:56
-
-
Save swipswaps/e417ef24bfa759aad46bb9c3e9461edf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//install gh in linux | |
//Copyright ©2021 by @swipswaps, All rights reserved. | |
//from computingforgeeks.com/how-to-install-github-cli-on-linux-and-windows | |
//https://gist.github.com/swipswaps/e417ef24bfa759aad46bb9c3e9461edf | |
#VERSION=`curl "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-` && echo $VERSION | |
#wget -c https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz && tar xvf gh_${VERSION}_linux_amd64.tar.gz && sudo cp gh_${VERSION}_linux_amd64/bin/gh /usr/local/bin/ && gh version | |
#gh auth login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment