1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

exec: add option exec.command.shell to customize the shell used with /exec -sh

This commit is contained in:
Sébastien Helleu
2018-11-17 11:39:28 +01:00
parent c94a8f4c68
commit 916d99ad40
23 changed files with 163 additions and 18 deletions
+11
View File
@@ -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",