aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2014-01-08 22:06:43 +0100
committerMathias Bynens <mathias@qiwi.be>2014-01-08 22:07:19 +0100
commit47a67ac3e467e5f8bd812208a8bfd47d6848cced (patch)
tree29dbf147951d32e2d3a9cb92a67185236bc4baa9 /.aliases
parent674506b7c6c4dfab674650a3eda6bf5c24e1f0e7 (diff)
downloaddotfiles-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)
Diffstat (limited to '.aliases')
-rw-r--r--.aliases5
1 files changed, 5 insertions, 0 deletions
diff --git a/.aliases b/.aliases
index 7bba85b..73108bd 100644
--- a/.aliases
+++ b/.aliases
@@ -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"