mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
This commit is contained in:
3
tmux.c
3
tmux.c
@ -39,7 +39,6 @@ struct options *global_options; /* server options */
|
||||
struct options *global_s_options; /* session options */
|
||||
struct options *global_w_options; /* window options */
|
||||
struct environ *global_environ;
|
||||
struct hooks *global_hooks;
|
||||
|
||||
struct timeval start_time;
|
||||
const char *socket_path;
|
||||
@ -312,8 +311,6 @@ main(int argc, char **argv)
|
||||
flags |= CLIENT_UTF8;
|
||||
}
|
||||
|
||||
global_hooks = hooks_create(NULL);
|
||||
|
||||
global_environ = environ_create();
|
||||
for (var = environ; *var != NULL; var++)
|
||||
environ_put(global_environ, *var);
|
||||
|
Reference in New Issue
Block a user