diff options
author | Mathias Bynens <mathias@qiwi.be> | 2014-01-08 22:06:43 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-01-08 22:07:19 +0100 |
commit | 47a67ac3e467e5f8bd812208a8bfd47d6848cced (patch) | |
tree | 29dbf147951d32e2d3a9cb92a67185236bc4baa9 | |
parent | 674506b7c6c4dfab674650a3eda6bf5c24e1f0e7 (diff) | |
download | dotfiles-47a67ac3e467e5f8bd812208a8bfd47d6848cced.tar.gz dotfiles-47a67ac3e467e5f8bd812208a8bfd47d6848cced.tar.bz2 dotfiles-47a67ac3e467e5f8bd812208a8bfd47d6848cced.zip |
.aliases: Add `jsc` alias
Useful for testing code in JavaScriptCore.
Hat tip: https://twitter.com/RussB/status/420409644117262336 (via @rauschma)
-rw-r--r-- | .aliases | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -77,6 +77,11 @@ command -v md5sum > /dev/null || alias md5sum="md5" # OS X has no `sha1sum`, so use `shasum` as a fallback command -v sha1sum > /dev/null || alias sha1sum="shasum" +# JavaScriptCore REPL +jscbin="/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc" +[ -e "${jscbin}" ] && alias jsc="${jscbin}" +unset jscbin + # Trim new lines and copy to clipboard alias c="tr -d '\n' | pbcopy" |