I was wondering is it is possible to make the default webpage on nvm.sh/ return the install script itself?
Every time I'm working on a fresh Linux installation, I always just want to be able to type something like
curl -sSL https://nvm.sh/ | bash
or
curl -o- https://nvm.sh/install | bash,
because otherwise I just type nvm.sh in my browser and then grab the link from the GitHub page.
Having it directly and easily accessible from such URL would be far more convenient.
I am also pretty sure that there is a way for webservers to detect requests coming from user agents like curl or wget, so maybe only returning the install script when these user agents are detected be a better way to implement it, in case if there are any inconveniences.
Edit: install.nvm.sh? A redirect to the GitHub link?
I was wondering is it is possible to make the default webpage on nvm.sh/ return the install script itself?
Every time I'm working on a fresh Linux installation, I always just want to be able to type something like
curl -sSL https://nvm.sh/ | bashor
curl -o- https://nvm.sh/install | bash,because otherwise I just type
nvm.shin my browser and then grab the link from the GitHub page.Having it directly and easily accessible from such URL would be far more convenient.
I am also pretty sure that there is a way for webservers to detect requests coming from user agents like curl or wget, so maybe only returning the install script when these user agents are detected be a better way to implement it, in case if there are any inconveniences.
Edit: install.nvm.sh? A redirect to the GitHub link?