Last active
April 6, 2022 16:29
-
-
Save ptrcnull/0a8b6fe972001c06b75fe5c1888195c3 to your computer and use it in GitHub Desktop.
JetBrains IDE command-line launcher
This file contains 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
#!/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