Last active
December 21, 2015 02:59
-
-
Save da99/6238920 to your computer and use it in GitHub Desktop.
My customized lua exec (via luajit 2.0) with readline support:. Inspired by: http://dhllndr.blogspot.com/2012/03/luajit-as-interpreter-adding-readline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# -*- bash -*- | |
# | |
cmd="$@" | |
if [[ -z "$@" ]] | |
then | |
rlwrap luajit | |
else | |
luajit "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment