Skip to content

Instantly share code, notes, and snippets.

@patrickmslatteryvt
Last active April 12, 2019 03:50
Show Gist options
  • Save patrickmslatteryvt/3b922bcfe286105e794c863b1071a3d3 to your computer and use it in GitHub Desktop.
Save patrickmslatteryvt/3b922bcfe286105e794c863b1071a3d3 to your computer and use it in GitHub Desktop.
Install/Update to latest version of powerline-go
# Install/Update to latest version of powerline-go:
# https://github.com/justjanne/powerline-go/releases/download/v1.12.1/powerline-go-linux-amd64
echo "[+] Install powerline-go"
jq || sudo dnf install -y jq || sudo apt-get install -y jq
mkdir -p ~/go/bin/
GITHUB_USER=justjanne
GITHUB_REPO=powerline-go
POWERLINE_GO_VERSION=$(curl -s https://api.github.com/repos/${GITHUB_USER}/${GITHUB_REPO}/releases/latest | jq .tag_name | tr -d '"')
echo "powerline-go version: ${POWERLINE_GO_VERSION}"
curl --fail --retry 3 --location "https://github.com/${GITHUB_USER}/${GITHUB_REPO}/releases/download/${POWERLINE_GO_VERSION}/${GITHUB_REPO}-linux-amd64" --output ~/go/bin/${GITHUB_REPO} -#
chmod +x ~/go/bin/${GITHUB_REPO}
~/go/bin/${GITHUB_REPO}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment