From: Eric Smith <es@trustfood.org>
To: zsh-users@zsh.org
Subject: Re: Make a function name an alias for another function [SOLVED]
Date: Sun, 5 Sep 2021 07:00:27 +0200 [thread overview]
Message-ID: <20210905050027.af6n7g3vkuc3gihe@trustfood.org> (raw)
In-Reply-To: <CAN=4vMq79EqOg2yb981O8STqrNzJrqnbtOWLZTKK9k2HmGo4VQ@mail.gmail.com>
Masterful!
$ vim .zshrc;source .zshrc
$ POST user/using/9
{
"message": "Active organization changed"
}
$ GET org
{
"id": 9,
"name": "oxxxxxxxxxxxxxxonmail.com",
}
Roman Perepelitsa previously_wrote on Sat-04-Sep 21 6:24PM
> On Sat, Sep 4, 2021 at 6:22 PM Eric Smith <es@fruitcom.com> wrote:
> >
> > How can I make like
> > POST() = GET()
> > Then I can call GET() and it will run the same function but return of cause an alternate $0
>
> Like this:
>
> POST GET DELETE() { cur --silent -X "$0" ... }
>
> Roman.
>
next prev parent reply other threads:[~2021-09-05 5:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-04 16:21 Make a function name an alias for another function Eric Smith
2021-09-04 16:24 ` Roman Perepelitsa
2021-09-05 5:00 ` Eric Smith [this message]
2021-09-05 19:01 ` Make a function name an alias for another function [SOLVED] 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210905050027.af6n7g3vkuc3gihe@trustfood.org \
--to=es@trustfood.org \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.vuxu.org/mirror/zsh/
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).