{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/2292","labels_url":"https://api.github.com/repos/neovim/neovim/issues/2292/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/2292/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/2292/events","html_url":"https://github.com/neovim/neovim/issues/2292","id":65085737,"number":2292,"title":":terminal should not use &shell","user":{"login":"splinterofchaos","id":38515,"avatar_url":"https://avatars.githubusercontent.com/u/38515?v=3","gravatar_id":"","url":"https://api.github.com/users/splinterofchaos","html_url":"https://github.com/splinterofchaos","followers_url":"https://api.github.com/users/splinterofchaos/followers","following_url":"https://api.github.com/users/splinterofchaos/following{/other_user}","gists_url":"https://api.github.com/users/splinterofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/splinterofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splinterofchaos/subscriptions","organizations_url":"https://api.github.com/users/splinterofchaos/orgs","repos_url":"https://api.github.com/users/splinterofchaos/repos","events_url":"https://api.github.com/users/splinterofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/splinterofchaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-29T19:08:10Z","updated_at":"2015-03-29T22:56:44Z","closed_at":null,"body":"I use fish as a default shell, but sh as my shell for vim scripts because many of the plugins I use assume the standard sh syntax. fish does work, actually very well, with `:terminal`.\r\n\r\nAccording to [one SO answer](http://stackoverflow.com/questions/11059067/what-is-the-nix-command-to-view-a-users-default-login-shell), the login shell can be obtained by running\r\n```bash\r\n$ getent passwd $LOGNAME | cut -d: -f7\r\n```\r\n...and for Mac, [another SO answer](http://stackoverflow.com/questions/16375519/how-to-get-default-shell) recommended the same, but using this:\r\n```bash\r\n$ grep ^$(id -un): /etc/passwd | cut -d : -f 7-\r\n```\r\nalthough the `^$(id -un)` syntax isn't fish-compatible and `grep` may output more than one username."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/87492838","html_url":"https://github.com/neovim/neovim/issues/2292#issuecomment-87492838","issue_url":"https://api.github.com/repos/neovim/neovim/issues/2292","id":87492838,"user":{"login":"splinterofchaos","id":38515,"avatar_url":"https://avatars.githubusercontent.com/u/38515?v=3","gravatar_id":"","url":"https://api.github.com/users/splinterofchaos","html_url":"https://github.com/splinterofchaos","followers_url":"https://api.github.com/users/splinterofchaos/followers","following_url":"https://api.github.com/users/splinterofchaos/following{/other_user}","gists_url":"https://api.github.com/users/splinterofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/splinterofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splinterofchaos/subscriptions","organizations_url":"https://api.github.com/users/splinterofchaos/orgs","repos_url":"https://api.github.com/users/splinterofchaos/repos","events_url":"https://api.github.com/users/splinterofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/splinterofchaos/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T22:56:44Z","updated_at":"2015-03-29T22:56:44Z","body":"Yeah, I said login shell referencing the discussion on gitter. `$SHELL` would be good for me.\r\n\r\n> I would though say that :terminal-specific non-&shell value should only be used for empty terminal commands since :terminal is suggested to be used in scripts like fugitive\r\n\r\nMight some users find that confusing? For example, simple commands like `ls **` behave differently in bash than fish, and not at all in `sh`. With fish, prints the relative path of everything in the path's subdirectories, while bash prints directories with a list of files under each one. I think it's reasonable to expect `:terminal | cmd` to behave exactly like `:terminal cmd`.\r\n\r\nI think `ls` is a good use-case too because when it detects that stdout is not a PTY, it doesn't produce an easy-to-read table."}}