Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Make a function name an alias for another function [SOLVED]
- X-seq: zsh-users 27088
- From: Eric Smith <es@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Make a function name an alias for another function [SOLVED]
- Date: Sun, 5 Sep 2021 07:00:27 +0200
- Archived-at: <https://zsh.org/users/27088>
- In-reply-to: <CAN=4vMq79EqOg2yb981O8STqrNzJrqnbtOWLZTKK9k2HmGo4VQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20210904162144.mwx5h6pj3rp33lgf@trustfood.org> <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@xxxxxxxxxxxx> 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.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author