The branch, master has been updated via 6ad2c5c40fb1532b2eeae9f01327752708c6a510 (commit) from 99cc0015f89698a8e988fa52d51e5959759bf80f (commit)
- Log ----------------------------------------------------------------- commit 6ad2c5c40fb1532b2eeae9f01327752708c6a510 Author: Nicholas Marriott <nicholas.marri...@gmail.com> Commit: Nicholas Marriott <nicholas.marri...@gmail.com> Show alias in lscm output. --- cmd-list-commands.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cmd-list-commands.c b/cmd-list-commands.c index 68e0e80..2acdfc5 100644 --- a/cmd-list-commands.c +++ b/cmd-list-commands.c @@ -42,8 +42,15 @@ 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); + for (entryp = cmd_table; *entryp != NULL; entryp++) { + if ((*entryp)->alias != NULL) { + ctx->print(ctx, "%s (%s) %s", (*entryp)->name, + (*entryp)->alias, (*entryp)->usage); + } else { + ctx->print(ctx, "%s %s", (*entryp)->name, + (*entryp)->usage); + } + } return (CMD_RETURN_NORMAL); } ----------------------------------------------------------------------- Summary of changes: cmd-list-commands.c | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) hooks/post-receive -- tmux ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs