Skip to content

Instantly share code, notes, and snippets.

@saml
Created February 19, 2011 03:52
Show Gist options
  • Save saml/834805 to your computer and use it in GitHub Desktop.
Save saml/834805 to your computer and use it in GitHub Desktop.
#!/bin/bash
LUA_HOME="$HOME/opt/lua"
export LUA_PATH="$LUA_PATH;./?.lua;$LUA_HOME/luamodules/?.lua"
export LUA_CPATH="$LUA_CPATH;./?.so;$LUA_HOME/luamodules/?.so"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/opt/gmp/lib:$LUA_HOME/lib"
"$LUA_HOME/bin/lua" -lreadline -lcomplete -lprelude $*
function reload(lib)
package.loaded[lib] = nil
return require(lib)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment