diff options
-rwxr-xr-x | lr | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,7 +1,6 @@ #!/bin/sh mdir="$(dirname "$(readlink $0)")" -lpath="$mdir/?.lua;$LUA_PATH" case "$(basename $0)" in ljr) lua=luajit ;; @@ -16,5 +15,5 @@ esac # allow overriding with envvar LUA lua=${LUA:-$lua} -LUA_PATH="$lpath" rlwrap "$lua" "${mdir}/repl.lua" $@ +rlwrap "$lua" -e 'package.loaded.pprint = dofile("'"${mdir}/pprint.lua"'")' "${mdir}/repl.lua" $@ |