A little tool I wrote when I realized how often I install JetBrains tools on various machines.
See all options
./jbi.py --help
Example: Download CLion
./jbi.py clion linux
Example: Download and install IntelliJ Idea Community in $HOME/local
, creating a soft link (useful when versions change)
./jbi.py ideac linux -i -l -p $HOME/local
Example: Update PyCharm Professional to the latest version, updating the soft link, and creating an application link
./jbi.py pycharmp linux -i -l -a -p $HOME/local -f
Example: Install latest Intellij-Ultimate EAP to /opt
(default - requires write permission for current user), creating an application link
./jbi.py ideaU linux --install --link --app --prefix=/opt --channel=eap
Example: See possible platforms for IntelliJ Idea Community
./jbi.py ideac
To add a CLI shim (e.g. idea
) that doesn't hang around in terminal, run the following, adjusting paths as needed:
echo '/opt/idea/bin/idea.sh "$@" </dev/null &>/dev/null & disown $!' | sudo tee /usr/local/bin/idea
sudo chmod +x /usr/local/bin/idea
Now try open a directory as a project:
cd ~/workspace/
idea .
FYI
$!
is a shortcut to the PID of the last background jobStdout & stderr are piped to
/dev/null
, so something likeidea --help
won't return anything, useidea.sh
directly for that use case.
The installation currently always installs under /Applications. If the application with the same name existed, it will rename it to .old.
- Not tested at all
:)