Open siddk opened 10 years ago
If you are referring to not loading ~/.bash_profile, then I'm having the same problem.
The bash launched isn't a "login shell", so doesn't attempt to read your profile.
Quick fix: Launch 'bash -login' from the non-login shell.
Fix: On OS X, I suspect the long term fix would be to make use of 'login -f $USER' - not very cross platform though. Linux has a 'login' executable, but I think it'll only work as root, even for logging in to the current user. (Can't test.)
Normally the OS will tell the shell its a login shell by prepending the shell's arg0 with a dash. exec -a -bash bash (or exec -a -$SHELL $SHELL) might be a better cross platform way to do this. I haven't tested this extensively though. It works with bash here.
Thanks for the tip Edward! I'll check it out this wkend— Typed using my thumbs..
On Thu, May 1, 2014 at 2:36 AM, Edward Shaw notifications@github.com wrote:
Fix: On OS X, I suspect the long term fix would be to make use of 'login -f $USER' - not very cross platform though. Linux has a 'login' executable, but I think it'll only work as root, even for logging in to the current user. (Can't test.)
Normally the OS will tell the shell its a login shell by prepending the shell's arg0 with a dash. exec -a -bash bash (or exec -a -$SHELL $SHELL) might be a better cross platform way to do this. I haven't tested this extensively though. It works with bash here.
Reply to this email directly or view it on GitHub: https://github.com/tjmehta/atom-term/issues/7#issuecomment-41895634
If you don't open atom from the command line, and launch the term plugin, any shell customization is gone (i.e zsh) and pane is misaligned. Yet when you open atom from the command line, then run the term plugin, everything is fine.