help / color / mirror / code / Atom feed
From: "Peter Slížik" <peter.slizik@gmail.com>
To: zsh <zsh-users@zsh.org>
Subject: Aliases (abbreviations) for command completion?
Date: Thu, 22 Jul 2021 10:51:40 +0200	[thread overview]
Message-ID: <CAC-uhUDmc3doMhVBzmC7UmPAY_e3Y7_MsopEFQFsarBuWZ2jew@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]


is it possible to define something like "aliases" (apologies for the lack
of a better term) for command completion?

If the completed command consists of multiple words, I would like to be
able to type the first letters of individual words and have this
abbreviation expanded to the whole command name (taking into account that
the abbreviation is not a prefix of the completed text).

For example:

ome<Tab> => outcomingmessageeditor
cs<Tab> => changestatus

Best regards,
Peter Slížik

[-- Attachment #2: Type: text/html, Size: 732 bytes --]

             reply	other threads:[~2021-07-22  8:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  8:51 Peter Slížik [this message]
2021-07-22 17:50 ` Grant Taylor
2021-07-22 21:03 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAC-uhUDmc3doMhVBzmC7UmPAY_e3Y7_MsopEFQFsarBuWZ2jew@mail.gmail.com \
    --to=peter.slizik@gmail.com \
    --cc=zsh-users@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).