Skip to content

Instantly share code, notes, and snippets.

@ptrcnull
Last active April 6, 2022 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrcnull/0a8b6fe972001c06b75fe5c1888195c3 to your computer and use it in GitHub Desktop.
Save ptrcnull/0a8b6fe972001c06b75fe5c1888195c3 to your computer and use it in GitHub Desktop.
JetBrains IDE command-line launcher
#!/bin/sh
ide_name=$(basename $0)
ide_env="$(basename $0 | tr '[a-z]' '[A-Z]')_JDK"
export $ide_env="/usr/lib/jvm/java-11-openjdk"
for x in $HOME/.local/share/$ide_name-*; do
ide_home=$x
done
$ide_home/bin/$ide_name.sh $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment