Skip to content

Instantly share code, notes, and snippets.

@da99
Last active December 21, 2015 02:59
Show Gist options
  • Save da99/6238920 to your computer and use it in GitHub Desktop.
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
#!/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