You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use clink for my prompt customization, but I really have no ideas where to start to use clink within the lua files
I have installed both lua, clink
lua -v # 5.3.5
clink -h # 0.4.9
I have a very lua file as shown below
script.lua
print(clink)
print(clink.get_env('CMDER_ROOT'))
I tried to execute the script.lua using lua script.lua, then I got the result as shown below
Result
nil
C:\Users\John\scoop\apps\lua\current\lua.exe: script.lua:2: attempt to index a nil value (global 'clink')
stack traceback:
script.lua:2: in main chunk
[C]: in ?
I also tried using clink inject && lua script.lua but the result was nothing at all, no errors
Please guide how to use clink from within the lua file, thanks.
The text was updated successfully, but these errors were encountered:
Dear all.
I would like to use
clink
for my prompt customization, but I really have no ideas where to start to useclink
within thelua
filesI have installed both
lua
,clink
I have a very
lua
file as shown belowscript.lua
I tried to execute the script.lua using
lua script.lua
, then I got the result as shown belowResult
I also tried using
clink inject && lua script.lua
but the result was nothing at all, no errorsPlease guide how to use
clink
from within thelua
file, thanks.The text was updated successfully, but these errors were encountered: