I want to create an alias for curl
which automatically writes the file it curl
s into a file with the same name in the current directory.
For example:
% curl https://bootstrap.pypa.io/get-pip.py
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
Is there a way to make the alias read the following argument and insert it into the actual executed script like this?