diff options
| author | Anton Bobov <anton@bobov.name> | 2024-09-20 00:31:18 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-09-20 00:34:07 +0500 |
| commit | f6439fb29e77505793e123dcbfd9eef62d3975ba (patch) | |
| tree | 0972ef04bc3592ff50ae0c88f38460212cee0610 | |
| parent | 7d073a7bddfb2829d7a7cd8e7730efa06a8731a9 (diff) | |
Add idea and pycharm run scripts
| -rwxr-xr-x | idea | 20 | ||||
| -rwxr-xr-x | pycharm | 20 |
2 files changed, 40 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -euo pipefail + +main() { + local TOOLBOX_PATH="$HOME/.local/share/JetBrains/Toolbox" + + for edition in intellij-idea-{ultimate,community-edition}; do + local idea_bin="$TOOLBOX_PATH/apps/$edition/bin/idea.sh" + if [ -x "$idea_bin" ]; then + "$idea_bin" "$@" >/dev/null 2>&1 & + exit 0 + fi + done + + echo "No idea found in toolbox path: $TOOLBOX_PATH" >&2 + exit 1 +} + +main "$@" @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -euo pipefail + +main() { + local TOOLBOX_PATH="$HOME/.local/share/JetBrains/Toolbox" + + for edition in pycharm-{ultimate,community}; do + local idea_bin="$TOOLBOX_PATH/apps/$edition/bin/idea.sh" + if [ -x "$idea_bin" ]; then + "$idea_bin" "$@" >/dev/null 2>&1 & + exit 0 + fi + done + + echo "No idea found in toolbox path: $TOOLBOX_PATH" >&2 + exit 1 +} + +main "$@" |
