Skip to content

Instantly share code, notes, and snippets.

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 julienbourdeau/240a0040812a59fcdd2d6560a676d6ee to your computer and use it in GitHub Desktop.
Save julienbourdeau/240a0040812a59fcdd2d6560a676d6ee to your computer and use it in GitHub Desktop.
idea.sh
#!/bin/bash
#Generated by JetBrains Toolbox 2.2.3.20090 at 2024-04-10T10:51:26.013119
declare -a intellij_args=()
declare -- wait=""
for o in "$@"; do
if [[ "$o" = "--wait" || "$o" = "-w" ]]; then
wait="-W"
o="--wait"
fi
if [[ "$o" =~ " " ]]; then
intellij_args+=("\"$o\"")
else
intellij_args+=("$o")
fi
done
open -na "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea" $wait --args "${intellij_args[@]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment