diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-06-27 07:54:53 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-06-27 07:54:53 +0200 |
commit | 1a1c50cc01a5a91013b86708dc2a8e5ad330619e (patch) | |
tree | 41f1db8017db611cab2a9b45393d024775dbb80c /doc/en/autogen/user | |
parent | 6cdcb6feca0a7e040298f3a5e3f867fc93dd6bf8 (diff) | |
download | weechat-1a1c50cc01a5a91013b86708dc2a8e5ad330619e.zip |
core: add option "env" in command /set
Diffstat (limited to 'doc/en/autogen/user')
-rw-r--r-- | doc/en/autogen/user/weechat_commands.asciidoc | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/doc/en/autogen/user/weechat_commands.asciidoc b/doc/en/autogen/user/weechat_commands.asciidoc index 2d230f991..f0aff8e79 100644 --- a/doc/en/autogen/user/weechat_commands.asciidoc +++ b/doc/en/autogen/user/weechat_commands.asciidoc @@ -755,23 +755,22 @@ Examples: ---- [[command_weechat_set]] -[command]*`set`* set config options:: +[command]*`set`* set config options and environment variables:: ---- /set [<option> [<value>]] diff [<option> [<option>...]] + env [<variable> [<value>]] option: name of an option (wildcard "*" is allowed) - value: new value for option + value: new value for option, according to type: + boolean: on, off or toggle + integer: number, ++number or --number + string: any string ("" for empty string) + color: color name, ++number or --number + Note: for all types, you can use null to remove option value (undefined value). This works only for some special plugin variables. diff: display only changed options - -New value can be, according to variable type: - boolean: on, off or toggle - integer: number, ++number or --number - string: any string ("" for empty string) - color: color name, ++number or --number - -For all types, you can use null to remove option value (undefined value). This works only for some special plugin variables. + env: display or set an environment variable (use value "" to unset a variable) Examples: display options about highlight: @@ -782,6 +781,13 @@ Examples: /set diff display changed options in irc plugin: /set diff irc.* + display value of environment variable LANG: + /set env LANG + set environment variable LANG and use it: + /set env LANG fr_FR.UTF-8 + /upgrade + unset environment variable ABC: + /set env ABC "" ---- [[command_weechat_unset]] |