1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

Merge pull request #476 from sim642/alias-example

core: update examples of alias add commands
This commit is contained in:
Sébastien Helleu
2015-08-08 10:27:26 +02:00
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1053,7 +1053,7 @@ Then you can load this script in your WeeChat, and setup path to your '/doc' dir
Then create this alias to build files:
----
/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
And use command `/doc` to build all files, for all languages.
+1 -1
View File
@@ -1073,7 +1073,7 @@ vers votre répertoire '/doc' :
Créez alors cet alias pour construire les fichiers :
----
/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
Et utilisez la commande `/doc` pour construire tous les fichiers, pour toutes
+1 -1
View File
@@ -1050,7 +1050,7 @@ $ msgcheck.py xx.po
ファイルを生成するエイリアスを作ってください:
----
/alias doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
/alias add doc /perl unload; /python unload; /ruby unload; /lua unload; /tcl unload; /guile unload; /javascript unload; /python load docgen.py; /wait 1ms /docgen
----
コマンド `/doc` を使って全ての (全てのプログラミング言語について) 自動生成するファイルを作成してください。
+1 -1
View File
@@ -7815,7 +7815,7 @@ command_init ()
" /set irc.server.oftc.command \"/msg nickserv identify "
"${sec.data.oftc}\"\n"
" alias to ghost the nick \"mynick\":\n"
" /alias ghost /eval /msg -server freenode nickserv ghost mynick "
" /alias add ghost /eval /msg -server freenode nickserv ghost mynick "
"${sec.data.freenode}"),
"passphrase -delete"
" || decrypt -discard"
+1 -1
View File
@@ -526,7 +526,7 @@ alias_hook_command (struct t_alias *alias)
/*
* if alias has no custom completion, then default is to complete with
* completion template of target command, for example if alias is
* "/alias test /buffer", then str_completion will be "%%buffer"
* "/alias add test /buffer", then str_completion will be "%%buffer"
*/
str_completion = NULL;
if (!alias->completion)