Skip to content

Instantly share code, notes, and snippets.

@DhavalDalal
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DhavalDalal/7d353027cf97a7333daa to your computer and use it in GitHub Desktop.
Save DhavalDalal/7d353027cf97a7333daa to your computer and use it in GitHub Desktop.
Textmate2 --> Edit Bundle... -->
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
if [ -e "${TM_FILEPATH}" ]; then
"$TM_BUNDLE_SUPPORT/bin/java_compile_and_run.sh" "$TM_FILEPATH"
else
exit_show_tool_tip "Save the file before running..."
fi
#!/usr/bin/env JAVA_HOME=$JAVA8_WL_HOME bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
if [ -e "${TM_FILEPATH}" ]; then
"$TM_BUNDLE_SUPPORT/bin/java_compile_and_run.sh" "$TM_FILEPATH"
else
exit_show_tool_tip "Save the file before running..."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment