-
-
Save StefanKruk/731b16b102cdde4c97a1f2d26f4ecafc to your computer and use it in GitHub Desktop.
Install JetBrains Toolbox App
This file contains hidden or 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
| #!/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