-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does not start a login shell #2
Comments
Half fixed. It As of alpha 15 it still isn't picking up the correct user's shell. For me it started up by default in
NB: Now running in High Sierra beta 1, but that seems to not be presenting any differences. |
Have you upgraded with the config in place? If so, your previous shell choice will be used. There's a new "Default shell" option in the shell list, which is default for new installations, and will pick the shell from your /etc/passwd entry. |
no, the high sierra upgrade on this machine failed so i ended up with a completely fresh installation. Since then I only just now installed terminus afresh to test this stuff since receiving an email notification (actually about the npm-discovery issue, related but this response was a bit off-topic to that hence putting it here). I'm only now installing npm on this machine so will see in a bit (waiting for node to compile) about that specifically. Right, Little bit of googling, it appears this command can retrieve a user's shell: (stand by, just realised splat-C for copy doesn't work, subject for another Issue if no-one else has already reported it...) $ dscl localhost -read /Local/Default/Users/$USER shell
dsAttrTypeNative:shell: /usr/local/bin/bash Confirmed, this is not new in High Sierra, but all applies in Sierra too. |
NB: Discovered the dscl command via here: https://superuser.com/questions/379725/how-do-i-change-a-users-default-shell-in-osx#379726 discovered for myself sudo not needed just to read one's own settings. |
Quite strange, I was testing it on my Sierra mac. I'm actually using I'm tracking the Cmd-C issue in #61 |
curiouser and curiouser. In checking something else I just tried setting the shell option back to "Default shell" and... now it's working. Beginning to think it was only not working on a completely fresh install, first-start... except it is now also working after I delete all terminus config I know about ( BTW still not detecting npm. Can confirm homebrew npm is installed, in a path set up in |
Can you please check the process' PATH by going into Settings > Open dev tools > Console and typing |
Result: "/usr/bin:/bin:/usr/sbin:/sbin" |
didja really mean to close it? |
Duh, this has completely slipped my mind - the app itself doesn't receive the $PATH from profile - only the one from Can you check whether |
it does. |
Hopefully this one will fix this once and for all |
Apparently not, as of Alpha 18. process.env.PATH still "/usr/bin:/bin:/usr/sbin:/sbin". |
Encouraging start. I'm trying it out on macOS Sierra btw. So far the main problem I have is that it does not start a login shell, so files such as
~/.bash_profile
don't get sourced. I could understand if people wanted this only as an option, but... then we do need that option. "Run as a login shell" :)Relatedly it defaulted to
/bin/zsh
instead of my actual configured shell. That for what it's worth, is/usr/local/bin/bash
, as installed by Homebrew, being a lot newer than the one in macOS. In case that might have confused it.To compare with macOS Terminal.app, both the above would be covered by the "Shells open with" option in its General tab: "Default login shell". It also has an option to specify a command to open the shell with, which seems like it might be a good idea too.
The text was updated successfully, but these errors were encountered: