Created
April 10, 2024 20:02
-
-
Save julienbourdeau/240a0040812a59fcdd2d6560a676d6ee to your computer and use it in GitHub Desktop.
idea.sh
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/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