Skip to content

Instantly share code, notes, and snippets.

@abn
Last active December 1, 2023 14:00
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save abn/022c5f9eae491687a766f25bd8322fc0 to your computer and use it in GitHub Desktop.
Save abn/022c5f9eae491687a766f25bd8322fc0 to your computer and use it in GitHub Desktop.
Install JetBrains Toolbox App
#!/usr/bin/env bash
# Reference: https://github.com/nagygergo/jetbrains-toolbox-install/blob/master/jetbrains-toolbox.sh
# Note that we grep for linux here, if you are using this on mac/windows please see json output
TOOLBOX_URL=$(curl --silent 'https://data.services.jetbrains.com//products/releases?code=TBA&latest=true&type=release' \
-H 'Origin: https://www.jetbrains.com' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.8' \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'Referer: https://www.jetbrains.com/toolbox/download/' \
-H 'Connection: keep-alive' \
-H 'DNT: 1' \
--compressed \
| grep -Po '"linux":.*?[^\\]",' \
| awk -F ':' '{print $3,":"$4}'| sed 's/[", ]//g')
install -d ${HOME}/bin
curl -sL ${TOOLBOX_URL} | tar xvz --directory=${HOME}/bin --strip-components=1
# intial setup
$(jetbrains-toolbox)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment