Skip to content

Commit 52be9b2

Browse files
committed
feat: open ultimate or community IDEA
1 parent b7f1c56 commit 52be9b2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

idea

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
#!/usr/bin/env bash
2-
open -na "IntelliJ IDEA.app" --args "$@"
2+
3+
APP_DIR="$HOME/Applications"
4+
idea=
5+
6+
if [[ -d "$APP_DIR/IntelliJ IDEA Ultimate.app" ]]; then
7+
idea="$APP_DIR/IntelliJ IDEA Ultimate.app"
8+
elif [[ -d "$APP_DIR/IntelliJ IDEA.app" ]]; then
9+
idea="$APP_DIR/IntelliJ IDEA.app"
10+
fi
11+
12+
open -na "$idea" --args "$@"

0 commit comments

Comments
 (0)