Rosettea / Hilbish

🌓 The Moon-powered shell! A comfy and extensible shell for Lua fans! 🌺 ✨
https://rosettea.github.io/Hilbish/
MIT License
496 stars 21 forks source link

Requiring lua modules #279

Closed CapedBojji closed 8 months ago

CapedBojji commented 8 months ago

is there a way to require other lua files and files from lua rocks

TorchedSammy commented 8 months ago

you can add the default lua package paths: package.path = package.path .. ';/usr/share/lua/5.4/?.lua;/usr/share/lua/5.4/?/init.lua;/usr/lib64/lua/5.4/?.lua;/usr/lib64/lua/5.4/?/init.lua;'

and then require luarocks.loader, and now you can require luarocks modules. maybe i can add the lua package.path for the next release.

CapedBojji commented 8 months ago

yeah i think that should be added by default thanks