Files
blomarchy/bin/blob-launch-or-focus-tui
T

15 lines
337 B
Bash
Executable File

#!/bin/bash
# blob:summary=Launch a TUI or focus an existing terminal window for it
# blob:args=[--app-id=<app-id>] <command> [args...]
if [[ ${1:-} == --app-id=* ]]; then
APP_ID="${1#--app-id=}"
else
APP_ID="org.blob.$(basename "$1")"
fi
LAUNCH_COMMAND="blob-launch-tui $@"
exec blob-launch-or-focus "$APP_ID" "$LAUNCH_COMMAND"