diff options
author | ubq323 <ubq323@ubq323.website> | 2023-06-09 17:32:22 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-06-09 17:32:22 +0100 |
commit | f16720db3060a0e9d1f069bd0e7b900809db90cf (patch) | |
tree | 42784048303da176f73e0377513c0573118d801b /lr | |
parent | 211fbe3a7f367e8df1a9d21c70fb867220c5f90d (diff) |
don't override lua path, use -e to load pprint instead
Diffstat (limited to 'lr')
-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" $@ |