diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | po/cs.po | 5 | ||||
-rw-r--r-- | po/de.po | 48 | ||||
-rw-r--r-- | po/es.po | 5 | ||||
-rw-r--r-- | po/fr.po | 11 | ||||
-rw-r--r-- | po/hu.po | 5 | ||||
-rw-r--r-- | po/it.po | 5 | ||||
-rw-r--r-- | po/ja.po | 5 | ||||
-rw-r--r-- | po/pl.po | 5 | ||||
-rw-r--r-- | po/pt.po | 5 | ||||
-rw-r--r-- | po/pt_BR.po | 5 | ||||
-rw-r--r-- | po/ru.po | 5 | ||||
-rw-r--r-- | po/sr.po | 10 | ||||
-rw-r--r-- | po/tr.po | 5 | ||||
-rw-r--r-- | po/weechat.pot | 5 | ||||
-rw-r--r-- | src/plugins/alias/alias-command.c | 21 |
16 files changed, 113 insertions, 33 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 5e1a6801f..96fb8d980 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -41,6 +41,7 @@ New features:: * alias: use lower case for default aliases, rename all aliases to lower case on upgrade (issue #1872) * alias: add `$&` to replace all arguments with double quotes escaped (issue #1140, issue #1190) * alias: add alias `action` to send a CTCP ACTION to a channel or a nick (issue #1577) + * alias: add option `missing` in command `/alias` * irc: rename "ssl" options to "tls", connect with TLS and port 6697 by default * irc: add support of capabilities "batch" and "draft/multiline" (issue #1292, issue #1923) * irc: add support of capability "echo-message" (issue #139) @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5268,7 +5268,7 @@ msgstr "vypíše, přídá nebo odebere IRC servery" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, fuzzy, no-c-format @@ -5278,6 +5278,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -26,7 +26,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-25 22:34+0200\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -6481,22 +6481,64 @@ msgstr "Alias \"%s\" wurde umbenannt. Der neue Name lautet \"%s\"" msgid "list, add or remove command aliases" msgstr "auflisten, hinzufügen oder entfernen von Alternativnamen" +#, fuzzy +#| msgid "" +#| "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " +#| "<completion> <alias> [<command>[;<command>...]] || del <alias> " +#| "[<alias>...] || rename <alias> <new_alias>" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " "|| rename <alias> <new_alias>" -#, no-c-format +#, fuzzy, no-c-format +#| msgid "" +#| " list: list aliases (without argument, this list is displayed)\n" +#| " add: add an alias\n" +#| "addcompletion: add an alias with a custom completion\n" +#| " del: delete an alias\n" +#| " rename: rename an alias\n" +#| " completion: completion for alias: by default completion is done with " +#| "target command\n" +#| " note: you can use %%command to use completion of an " +#| "existing command\n" +#| " alias: name of alias\n" +#| " command: command name with arguments (many commands can be " +#| "separated by semicolons)\n" +#| "\n" +#| "Note: in command, special variables are replaced:\n" +#| " $n: argument 'n' (between 1 and 9)\n" +#| " $-m: arguments from 1 to 'm'\n" +#| " $n-: arguments from 'n' to last\n" +#| " $n-m: arguments from 'n' to 'm'\n" +#| " $*: all arguments\n" +#| " $&: all arguments, with \" replaced by \\\"\n" +#| " $~: last argument\n" +#| " $var: where \"var\" is a local variable of buffer (see /buffer " +#| "listvar)\n" +#| " examples: $nick, $channel, $server, $plugin, $name\n" +#| "\n" +#| "Examples:\n" +#| " alias /split to split window horizontally:\n" +#| " /alias add split /window splith\n" +#| " alias /hello to say \"hello\" on all channels but not on #weechat:\n" +#| " /alias add hello /allchan -exclude=#weechat hello\n" +#| " rename alias \"hello\" to \"Hello\":\n" +#| " /alias rename hello Hello\n" +#| " alias /forcejoin to send IRC command \"forcejoin\" with completion of /" +#| "sajoin:\n" +#| " /alias addcompletion %%sajoin forcejoin /quote forcejoin" msgid "" " list: list aliases (without argument, this list is displayed)\n" " add: add an alias\n" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Santiago Forero <santiago@forero.xyz>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5885,7 +5885,7 @@ msgstr "lista, añade o elimina servidores IRC" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, fuzzy, no-c-format @@ -5895,6 +5895,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" -"PO-Revision-Date: 2023-05-27 09:29+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" +"PO-Revision-Date: 2023-05-27 20:18+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -6350,11 +6350,11 @@ msgstr "lister, ajouter ou retirer des alias de commande" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<alias>] || add <alias> [<commande>[;<commande>...]] || addcompletion " "<complétion> <alias> [<commande>[;<commande>...]] || del <alias> " -"[<alias>...] || rename <alias> <nouvel_alias>" +"[<alias>...] || rename <alias> <nouvel_alias> || missing" #, no-c-format msgid "" @@ -6363,6 +6363,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -6400,6 +6401,8 @@ msgstr "" "addcompletion : ajouter un alias avec une complétion personnalisée\n" " del : supprimer un alias\n" " rename : renommer un alias\n" +" missing : ajouter les alias manquants (en utilisant les alias par " +"défaut)\n" " complétion : complétion pour l'alias : par défaut la complétion se fait " "avec la commande cible\n" " note : vous pouvez utiliser %%commande pour utiliser la " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4802,7 +4802,7 @@ msgstr "szerverek listázása, hozzáadása vagy eltávolítása" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, fuzzy, no-c-format @@ -4812,6 +4812,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5545,7 +5545,7 @@ msgstr "elenca, aggiunge o rimuove server IRC" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, fuzzy, no-c-format @@ -5555,6 +5555,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -6158,7 +6158,7 @@ msgstr "別名コマンドのリストアップ、追加、削除" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...]" @@ -6170,6 +6170,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -6619,7 +6619,7 @@ msgstr "wyświetla, dodaje lub usuwa aliasy komend" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<alias>] || add <alias> [<komenda>[;<komenda>...]] || addcompletion " "<dopełnienie> <alias> [<komenda>[;<komenda>...]] || del <alias> [<alias>...]" @@ -6663,6 +6663,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -6205,7 +6205,7 @@ msgstr "listar, adicionar ou remover alias de comandos" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<alias>] || add <alias> [<comando>[;<comando>...]] || addcompletion " "<completação> <alias> [<comando>[;<comando>...]] || del <alias> [<alias>...]" @@ -6217,6 +6217,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " diff --git a/po/pt_BR.po b/po/pt_BR.po index e2a9d0e19..e6a0f7ae8 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Érico Nogueira <ericonr@disroot.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5512,7 +5512,7 @@ msgstr "" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, no-c-format @@ -5522,6 +5522,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4840,7 +4840,7 @@ msgstr "перечислить, добавить или удалить серв msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, fuzzy, no-c-format @@ -4850,6 +4850,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-14 15:29+0200\n" "Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -6187,10 +6187,15 @@ msgstr "Алијасу „%s” је промењено име на „%s”" msgid "list, add or remove command aliases" msgstr "исписује, додаје или уклања алијасе команди" +#, fuzzy +#| msgid "" +#| "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " +#| "<completion> <alias> [<command>[;<command>...]] || del <alias> " +#| "[<alias>...] || rename <alias> <new_alias>" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<алијас>] || add <алијас> [<команда>[;<команда>...]] || addcompletion " "<довршавање> <алијас> [<команда>[;<команда>...]] || del <алијас> " @@ -6238,6 +6243,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2023-05-01 20:23+0200\n" "Last-Translator: Emir SARI <emir_sari@icloud.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -6243,7 +6243,7 @@ msgstr "komut armalarını listele, ekle veya kaldır" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" "list [<arma>] || add <arma> [<komut>[;<komut>...]] || addcompletion " "<tamamlama> <arma> [<komut>[;<komut>...]] || del <arma> [<arma>...]" @@ -6287,6 +6287,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " diff --git a/po/weechat.pot b/po/weechat.pot index 3203f68a7..e1767a36d 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2023-05-27 09:28+0200\n" +"POT-Creation-Date: 2023-05-27 20:17+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4411,7 +4411,7 @@ msgstr "" msgid "" "list [<alias>] || add <alias> [<command>[;<command>...]] || addcompletion " "<completion> <alias> [<command>[;<command>...]] || del <alias> [<alias>...] " -"|| rename <alias> <new_alias>" +"|| rename <alias> <new_alias> || missing" msgstr "" #, no-c-format @@ -4421,6 +4421,7 @@ msgid "" "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" +" missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is done with " "target command\n" " note: you can use %%command to use completion of an existing " diff --git a/src/plugins/alias/alias-command.c b/src/plugins/alias/alias-command.c index 260419916..50d5fd7f2 100644 --- a/src/plugins/alias/alias-command.c +++ b/src/plugins/alias/alias-command.c @@ -277,6 +277,20 @@ alias_command_cb (const void *pointer, void *data, return WEECHAT_RC_OK; } + if (weechat_strcmp (argv[1], "missing") == 0) + { + for (i = 0; alias_default[i][0]; i++) + { + if (!alias_search (alias_default[i][0])) + { + alias_command_add (alias_default[i][0], /* name */ + alias_default[i][1], /* command */ + alias_default[i][2]); /* completion */ + } + } + return WEECHAT_RC_OK; + } + WEECHAT_COMMAND_ERROR; } @@ -294,7 +308,8 @@ alias_command_init () " || add <alias> [<command>[;<command>...]]" " || addcompletion <completion> <alias> [<command>[;<command>...]]" " || del <alias> [<alias>...]" - " || rename <alias> <new_alias>"), + " || rename <alias> <new_alias>" + " || missing"), /* xgettext:no-c-format */ N_(" list: list aliases (without argument, this list is " "displayed)\n" @@ -302,6 +317,7 @@ alias_command_init () "addcompletion: add an alias with a custom completion\n" " del: delete an alias\n" " rename: rename an alias\n" + " missing: add missing aliases (using default aliases)\n" " completion: completion for alias: by default completion is " "done with target command\n" " note: you can use %%command to use completion of " @@ -337,6 +353,7 @@ alias_command_init () " || add %(alias) %(commands:/)|%(alias_value)" " || addcompletion %- %(alias) %(commands:/)|%(alias_value)" " || del %(alias)|%*" - " || rename %(alias) %(alias)", + " || rename %(alias) %(alias)" + " || missing", &alias_command_cb, NULL, NULL); } |