{"action":"closed","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3158","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3158/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3158/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3158/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3158","id":161167197,"number":3158,"title":"Fish completions, function with same name","user":{"login":"FabioAntunes","id":2544673,"avatar_url":"https://avatars.githubusercontent.com/u/2544673?v=3","gravatar_id":"","url":"https://api.github.com/users/FabioAntunes","html_url":"https://github.com/FabioAntunes","followers_url":"https://api.github.com/users/FabioAntunes/followers","following_url":"https://api.github.com/users/FabioAntunes/following{/other_user}","gists_url":"https://api.github.com/users/FabioAntunes/gists{/gist_id}","starred_url":"https://api.github.com/users/FabioAntunes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabioAntunes/subscriptions","organizations_url":"https://api.github.com/users/FabioAntunes/orgs","repos_url":"https://api.github.com/users/FabioAntunes/repos","events_url":"https://api.github.com/users/FabioAntunes/events{/privacy}","received_events_url":"https://api.github.com/users/FabioAntunes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-20T10:46:24Z","updated_at":"2016-06-20T11:06:31Z","closed_at":"2016-06-20T11:06:31Z","body":"I'm having a hard time with completions and a function I have created. \r\n\r\n```\r\nfunction npm -d \"node package manager\"\r\n  __nvm_run \"npm\" $argv\r\nend\r\n```\r\n\r\nSo this function basically calls `__nvm_run` checks if nvm has already sourced node, if not sources it and then runs npm, if node is already sourced then it just runs npm.\r\n\r\nThat function creates this issue https://github.com/fish-shell/fish-shell/issues/3152\r\n\r\nIf I change the function to this:\r\n\r\n```\r\nfunction npm -d \"node package manager\" -c npm -w npm\r\n   echo \"This won't run\"\r\n  __nvm_run \"npm\" $argv\r\nend\r\n```\r\n\r\nThe completions works fine, but the function it's not called anymore.\r\n\r\nany help?\r\n\r\n\r\n"}}
{"actor":{"display_login":"faho"}}