When printing out the command usage, include the command's alias as well. --- cmd-list-commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmd-list-commands.c b/cmd-list-commands.c index 68e0e80..b6c2f98 100644 --- a/cmd-list-commands.c +++ b/cmd-list-commands.c @@ -43,7 +43,8 @@ cmd_list_commands_exec(unused struct cmd *self, struct cmd_ctx *ctx) const struct cmd_entry **entryp; for (entryp = cmd_table; *entryp != NULL; entryp++) - ctx->print(ctx, "%s %s", (*entryp)->name, (*entryp)->usage); + ctx->print(ctx, "%s (%s) %s", + (*entryp)->name, (*entryp)->alias, (*entryp)->usage); return (CMD_RETURN_NORMAL); } -- 1.7.11.4 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users