{"action":"opened","issue":{"url":"https://api.github.com/repos/tokuhirom/plenv/issues/118","labels_url":"https://api.github.com/repos/tokuhirom/plenv/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/tokuhirom/plenv/issues/118/comments","events_url":"https://api.github.com/repos/tokuhirom/plenv/issues/118/events","html_url":"https://github.com/tokuhirom/plenv/issues/118","id":127251547,"number":118,"title":"Error when initializing through a fish shell","user":{"login":"eugenesvk","id":12956286,"avatar_url":"https://avatars.githubusercontent.com/u/12956286?v=3","gravatar_id":"","url":"https://api.github.com/users/eugenesvk","html_url":"https://github.com/eugenesvk","followers_url":"https://api.github.com/users/eugenesvk/followers","following_url":"https://api.github.com/users/eugenesvk/following{/other_user}","gists_url":"https://api.github.com/users/eugenesvk/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenesvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenesvk/subscriptions","organizations_url":"https://api.github.com/users/eugenesvk/orgs","repos_url":"https://api.github.com/users/eugenesvk/repos","events_url":"https://api.github.com/users/eugenesvk/events{/privacy}","received_events_url":"https://api.github.com/users/eugenesvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-18T15:37:54Z","updated_at":"2016-01-18T15:37:54Z","closed_at":null,"body":"I've recently installed `fish` shell and now can't initialize `plenv` (installed both via `Homebrew`). I'm using the following command in my `config.fish`:\r\n`status --is-interactive; and . (plenv init -|psub)`\r\n\r\nHowever, I get the following error:\r\n```\r\n'case' builtin not inside of switch block\r\n/var/folders/y9/sgzncbj919d9gsvjtz2rnt_40000gn/T//.psub.R84ki3X3kk (line 9):   case \"$command\" in\r\n                                                                               ^\r\nfrom sourcing file /var/folders/y9/sgzncbj919d9gsvjtz2rnt_40000gn/T//.psub.R84ki3X3kk\r\n\tcalled on line 151 of file /usr/local/Cellar/fish/2.2.0/share/fish/config.fish\r\n\r\nin function '.'\r\n\tcalled on standard input\r\n\r\nsource: Error while reading file '/var/folders/y9/sgzncbj919d9gsvjtz2rnt_40000gn/T//.psub.R84ki3X3kk'\r\n```\r\n\r\nFYI line 151 of file `/usr/local/Cellar/fish/2.2.0/share/fish/config.fish` is\r\n`\t\tsource $argv`\r\n\r\nOther virtualenvs work just fine with exactly the same initialization command syntax (`rbenv` and `pyenv`).\r\nAny ideas on why that is happening?"}}