Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Bash completion: change short redirected url for full url #154
Conversation
|
|
|
If you are happy with the URL, you'll need to add the |
|
Okies |
As per the comments in git-tips#154, use -L to follow the redirect for curl. The tip as written does not currently work as it downloads the html for the redirect page instead.
As per git-tips#154, change to -L so that the redirect gets followed. As written this line downloads the html redirect page.
As per git-tips#154, change to -L so that the redirect gets followed. As written this line downloads the html redirect page.
http://git.io/vfhol returns a redirect. That could be solved with
curl -L. However, for something that goes into the bash profile, I think that it is a good thing to download it with a descriptive https url