Skip to content

Instantly share code, notes, and snippets.

@da99
Created August 15, 2013 07:18
Show Gist options
  • Save da99/6238876 to your computer and use it in GitHub Desktop.
Save da99/6238876 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 lua
else
luajit "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment