diff --git a/plugins/js-repl/js-repl.plugin.zsh b/plugins/js-repl/js-repl.plugin.zsh new file mode 100644 index 00000000..64e9a411 --- /dev/null +++ b/plugins/js-repl/js-repl.plugin.zsh @@ -0,0 +1,5 @@ +if [[ "$OSTYPE" = darwin* ]] ; then + # https://trac.webkit.org/wiki/JSC + # jsc (or JavaScriptCore) is a Safari JavaScript REPL + alias jsc="/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc" +fi