Skip to content

Instantly share code, notes, and snippets.

@kenfehling
Last active December 7, 2015 15:38
Show Gist options
  • Save kenfehling/c16dafb44f6d0ff3f23a to your computer and use it in GitHub Desktop.
Save kenfehling/c16dafb44f6d0ff3f23a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# For opening a file from the heads up display of Figwheel in IntelliJ IDEA
# Made for OS X but should work similarly on Linux with a different CMD variable
# Add this script to your path (ex. ~/bin) and use from
# :open-file-command in the :figwheel section of project.clj
INTELLIJ_VERSION=14 # Change for your (whole number) version of IntelliJ IDEA
CMD="/Applications/IntelliJ IDEA ${INTELLIJ_VERSION}.app/Contents/MacOS/idea"
"$CMD" "$PWD" --line $2 "$PWD/$1"
@kenfehling
Copy link
Author

Bash script for opening a file from the heads up display of Figwheel in IntelliJ IDEA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment