Skip to content

Instantly share code, notes, and snippets.

@dongyuwei
Created October 17, 2022 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dongyuwei/bcfa623c1de314ec2de0ede11c3eec9a to your computer and use it in GitHub Desktop.
Save dongyuwei/bcfa623c1de314ec2de0ede11c3eec9a to your computer and use it in GitHub Desktop.
use LUA_INIT to preload inspect.lua, so we can use it in lua.
tail ~/.config/fish/config.fish
`set -gx LUA_INIT @/Users/yuwdong/.init.lua`
cat /Users/yuwdong/.init.lua
```lua
inspect = require('inspect')
ins = inspect
```
@dongyuwei
Copy link
Author

luarocks install inspect --local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment