]> Sergey Matveev's repositories - nnn.git/commit
Support commands specified by environment variables
authorMartin Kühl <martin.kuehl@gmail.com>
Fri, 20 Nov 2015 15:42:33 +0000 (16:42 +0100)
committersin <sin@2f30.org>
Thu, 26 Nov 2015 13:37:03 +0000 (13:37 +0000)
commitd1ed0cff118a07327b3b237ea65836f5c673acbb
treeaf0753ee09bbf1d5e0edc9227566594f0eb7d328
parentd1d086d91edd89e5a8edcc3349488b3ed89f8c9d
Support commands specified by environment variables

Specifying commands by name in config.h means that
every time one switches ones editor (for example),
one has to modify every config.h file referencing that editor
and then recompile every corresponding program.

This change adds a string `env` for specifying an environment
variable to `struct key` and uses it to optionally specify the
command to run on SEL_{RUN,RUNARG}.
The `run` string is used as a fallback when the environment variable
has not been specified or is not set.
It also updates `config.def.h` to demonstrate this new capability.
config.def.h
noice.c