clink icon indicating copy to clipboard operation
clink copied to clipboard

[QUESTION] Is it possible to set environment variables via Lua scripts?

Open YigitDincer opened this issue 8 years ago • 1 comments

I want to set an environment variable if a specific command is entered in Clink shell. Is it somehow possible?

E.g. the user enters in Clink 'start'. This command should set the environment variable START_CALLED to 1. This value will be read later on and set back to 0. So I need a possibility to read the given command and react to it via lua scripts/functions.

YigitDincer avatar Mar 26 '18 17:03 YigitDincer

That's possible in the fork at chrisant996/clink. See the clink.onendedit() Lua function.

chrisant996 avatar Jul 27 '21 03:07 chrisant996