Closed HeyItsJono closed 1 year ago
No. It loads scripts from the listed directories.
If it recursed that would break things and run scripts at load time that shouldn't be run, such as modules\ and completions\ scripts.
Thanks, this is odd, as I currently have a situation where Cmder/vendor/clink-completions
is being loaded, however it does not exist in my installed clink scripts. Ctrl+X
Ctrl+Z
shows:
USER\AppData\Roaming\Cmder\vendor
USER\AppData\Roaming\Cmder\vendor\clink
USER\AppData\Roaming\Cmder\config
USER\AppData\Roaming\Cmder\config\clink-gizmos
But USER\AppData\Roaming\Cmder\vendor\clink-completions
is also being loaded.
EDIT:
Sorry, seems it's Cmder's doing. In USER\AppData\Roaming\Cmder\vendor\clink.lua
:
local completions_dir = clink.get_env('CMDER_ROOT')..'/vendor/clink-completions/'
-- Execute '.init.lua' first to ensure package.path is set properly
dofile(completions_dir..'.init.lua')
Thanks for your help
I just have a quick question RE:
clink installscripts
, I was hoping to find out if this automatically searches subdirectories of the specified directory.For example, if I run
clink installscripts %APPDATA%/Cmder/config
, whereconfig
has .lua scripts in it, but also a subfolderclink-gizmos
with scripts in it, will I need to separately runclink installscripts %APPDATA%/Cmder/config/clink-gizmos
, or would doing this mean that the scripts inclink-gizmos
are parsed twice?