clink
clink copied to clipboard
[QUESTION] Is it possible to set environment variables via Lua scripts?
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.
That's possible in the fork at chrisant996/clink. See the clink.onendedit() Lua function.