Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Make a function name an alias for another function [SOLVED]



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