Skip to content

Instantly share code, notes, and snippets.

@chabala
Last active June 9, 2016 16:00
Show Gist options
  • Save chabala/9502049 to your computer and use it in GitHub Desktop.
Save chabala/9502049 to your computer and use it in GitHub Desktop.
IntelliJ IDEA wrapper script. Gives a layer of indirection between a desktop icon and actual startup script.
#!/usr/bin/env bash
# IntelliJ IDEA startup script wrapper
export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
export IDEA_JDK=$JAVA_HOME
export M2_HOME="/usr/local/apache-maven/apache-maven-3.3.9"
export M2=$M2_HOME/bin
#cd idea-IU-129.713/bin/
cd idea-IU-145.597.3/bin/
exec ./idea.sh "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment