diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-11-17 11:39:28 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-11-17 11:39:28 +0100 |
commit | 916d99ad405d79853e323024d48a03176c587bca (patch) | |
tree | 36962f20208275226d1831b6bc3748fe91001da8 /src/plugins/exec/exec-config.c | |
parent | c94a8f4c683e343aa9eb47008f4172e50d723b48 (diff) | |
download | weechat-916d99ad405d79853e323024d48a03176c587bca.zip |
exec: add option exec.command.shell to customize the shell used with /exec -sh
Diffstat (limited to 'src/plugins/exec/exec-config.c')
-rw-r--r-- | src/plugins/exec/exec-config.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/exec/exec-config.c b/src/plugins/exec/exec-config.c index 43693aa47..017cff635 100644 --- a/src/plugins/exec/exec-config.c +++ b/src/plugins/exec/exec-config.c @@ -34,6 +34,7 @@ struct t_config_file *exec_config_file = NULL; struct t_config_option *exec_config_command_default_options; struct t_config_option *exec_config_command_purge_delay; +struct t_config_option *exec_config_command_shell; /* exec config, color section */ @@ -130,6 +131,16 @@ exec_config_init () "commands immediately, -1 = never purge)"), NULL, -1, 36000 * 24 * 30, "0", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + exec_config_command_shell = weechat_config_new_option ( + exec_config_file, ptr_section, + "shell", "string", + N_("shell to use with command \"/exec -sh\"; it can be just the name " + "of shell if it is in PATH (for example \"bash\") or the absolute " + "path to the shell (for example \"/bin/bash\")"), + NULL, 0, 0, "sh", NULL, 0, + NULL, NULL, NULL, + NULL, NULL, NULL, + NULL, NULL, NULL); /* color */ ptr_section = weechat_config_new_section (exec_config_file, "color", |