{"action":"created","issue":{"url":"https://api.github.com/repos/creationix/nvm/issues/1150","repository_url":"https://api.github.com/repos/creationix/nvm","labels_url":"https://api.github.com/repos/creationix/nvm/issues/1150/labels{/name}","comments_url":"https://api.github.com/repos/creationix/nvm/issues/1150/comments","events_url":"https://api.github.com/repos/creationix/nvm/issues/1150/events","html_url":"https://github.com/creationix/nvm/issues/1150","id":164388848,"number":1150,"title":"nvm doesn't work with curl alias","user":{"login":"dansimau","id":203031,"avatar_url":"https://avatars.githubusercontent.com/u/203031?v=3","gravatar_id":"","url":"https://api.github.com/users/dansimau","html_url":"https://github.com/dansimau","followers_url":"https://api.github.com/users/dansimau/followers","following_url":"https://api.github.com/users/dansimau/following{/other_user}","gists_url":"https://api.github.com/users/dansimau/gists{/gist_id}","starred_url":"https://api.github.com/users/dansimau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansimau/subscriptions","organizations_url":"https://api.github.com/users/dansimau/orgs","repos_url":"https://api.github.com/users/dansimau/repos","events_url":"https://api.github.com/users/dansimau/events{/privacy}","received_events_url":"https://api.github.com/users/dansimau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creationix/nvm/labels/bugs","name":"bugs","color":"e11d21"},{"url":"https://api.github.com/repos/creationix/nvm/labels/installing%20node","name":"installing node","color":"fef2c0"},{"url":"https://api.github.com/repos/creationix/nvm/labels/shell%20alias%20clobbering","name":"shell alias clobbering","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"assignees":[{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-07T19:30:55Z","updated_at":"2016-07-07T20:48:46Z","closed_at":null,"body":"I have curl aliased in my shell:\r\n\r\n```\r\ndan-mbp-work:~ dan$ type curl\r\ncurl is aliased to `curl --verbose -k -o/dev/null'\r\ndan-mbp-work:~ dan$ \r\n```\r\n\r\nThis causes nvm to fail on ls-remote:\r\n\r\n```\r\ndan-mbp-work:~ dan$ type curl\r\ncurl is aliased to `curl --verbose -k -o/dev/null'\r\ndan-mbp-work:~ dan$ nvm ls-remote\r\n*   Trying 104.20.22.46...\r\n* Connected to nodejs.org (104.20.22.46) port 443 (#0)\r\n* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\r\n* Server certificate: *.nodejs.org\r\n* Server certificate: COMODO RSA Domain Validation Secure Server CA\r\n* Server certificate: COMODO RSA Certification Authority\r\n* Server certificate: AddTrust External CA Root\r\n> GET /dist/index.tab HTTP/1.1\r\n> Host: nodejs.org\r\n> User-Agent: curl/7.43.0\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Date: Thu, 07 Jul 2016 19:22:31 GMT\r\n< Content-Type: text/plain\r\n< Transfer-Encoding: chunked\r\n< Connection: keep-alive\r\n< Set-Cookie: __cfduid=d89d74e8ae3aad5b6eaf4a37052a6551a1467919351; expires=Fri, 07-Jul-17 19:22:31 GMT; path=/; domain=.nodejs.org; HttpOnly\r\n< Last-Modified: Wed, 06 Jul 2016 19:37:58 GMT\r\n< CF-Cache-Status: HIT\r\n< Expires: Thu, 07 Jul 2016 23:22:31 GMT\r\n< Cache-Control: public, max-age=14400\r\n< Server: cloudflare-nginx\r\n< CF-RAY: 2bedaa6a92cf0c89-AMS\r\n< \r\n{ [892 bytes data]\r\n* Connection #0 to host nodejs.org left intact\r\n*   Trying 104.131.173.199...\r\n* Connected to iojs.org (104.131.173.199) port 443 (#0)\r\n* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\r\n* Server certificate: *.nodejs.org\r\n* Server certificate: COMODO RSA Domain Validation Secure Server CA\r\n* Server certificate: COMODO RSA Certification Authority\r\n* Server certificate: AddTrust External CA Root\r\n> GET /dist/index.tab HTTP/1.1\r\n> Host: iojs.org\r\n> User-Agent: curl/7.43.0\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 200 OK\r\n< Server: nginx\r\n< Date: Thu, 07 Jul 2016 19:22:32 GMT\r\n< Content-Type: text/plain\r\n< Content-Length: 7395\r\n< Last-Modified: Tue, 15 Sep 2015 09:08:02 GMT\r\n< Connection: keep-alive\r\n< ETag: \"55f7dff2-1ce3\"\r\n< Strict-Transport-Security: max-age=63072000\r\n< X-Frame-Options: DENY\r\n< X-Content-Type-Options: nosniff\r\n< Accept-Ranges: bytes\r\n< \r\n{ [7395 bytes data]\r\n* Connection #0 to host iojs.org left intact\r\n            N/A\r\ndan-mbp-work:~ dan$ \r\n```\r\n\r\nI tried running:\r\n\r\n```\r\nunalias curl\r\n```\r\n\r\nBut it doesn't work.\r\n"},"comment":{"url":"https://api.github.com/repos/creationix/nvm/issues/comments/231202797","html_url":"https://github.com/creationix/nvm/issues/1150#issuecomment-231202797","issue_url":"https://api.github.com/repos/creationix/nvm/issues/1150","id":231202797,"user":{"login":"dansimau","id":203031,"avatar_url":"https://avatars.githubusercontent.com/u/203031?v=3","gravatar_id":"","url":"https://api.github.com/users/dansimau","html_url":"https://github.com/dansimau","followers_url":"https://api.github.com/users/dansimau/followers","following_url":"https://api.github.com/users/dansimau/following{/other_user}","gists_url":"https://api.github.com/users/dansimau/gists{/gist_id}","starred_url":"https://api.github.com/users/dansimau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dansimau/subscriptions","organizations_url":"https://api.github.com/users/dansimau/orgs","repos_url":"https://api.github.com/users/dansimau/repos","events_url":"https://api.github.com/users/dansimau/events{/privacy}","received_events_url":"https://api.github.com/users/dansimau/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T20:48:45Z","updated_at":"2016-07-07T20:48:45Z","body":"You could do:\r\n```\r\ndeclare curl=$(which curl)\r\n$curl http://www.google.com/\r\n```\r\n\r\nOr:\r\n```\r\nenv curl http://www.google.com/\r\n```\r\n\r\nI mean, normally I would just solve this by doing `unalias curl` and re-running the script in question. But that doesn't seem to work for nvm."}}
{"actor":{"display_login":"dansimau"}}