summaryrefslogtreecommitdiff
path: root/lr
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-09 17:32:22 +0100
committerubq323 <ubq323@ubq323.website>2023-06-09 17:32:22 +0100
commitf16720db3060a0e9d1f069bd0e7b900809db90cf (patch)
tree42784048303da176f73e0377513c0573118d801b /lr
parent211fbe3a7f367e8df1a9d21c70fb867220c5f90d (diff)
don't override lua path, use -e to load pprint instead
Diffstat (limited to 'lr')
-rwxr-xr-xlr3
1 files changed, 1 insertions, 2 deletions
diff --git a/lr b/lr
index 9158f02..0b5698f 100755
--- a/lr
+++ b/lr
@@ -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" $@