Skip to content
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

Default shell #376

Closed
renard opened this issue Jul 21, 2020 · 5 comments
Closed

Default shell #376

renard opened this issue Jul 21, 2020 · 5 comments

Comments

@renard
Copy link

renard commented Jul 21, 2020

I use vterm on MacOS which has defined zsh as default shell. I updated my default shell to bash using chsh and it works like a sharm when I use iTerm.

However using vterm lands me to zsh. Is there a way to change it to bash?

Thanks

@Sbozzolo
Copy link
Collaborator

Sbozzolo commented Jul 21, 2020 via email

@renard
Copy link
Author

renard commented Jul 21, 2020

Yes that is it thanks.

And it would be better to fix the root variable shell-file-name.

Thanks for the hint.

@Sbozzolo
Copy link
Collaborator

shell-file-name should be equivalent to what we have right now, that is, we look at the value of the environment variable SHELL.

@renard
Copy link
Author

renard commented Jul 21, 2020

Yes since vterm-shell is set to shell-file-nameif the later is set before it works.

However the SHELL env also has to be set as well.

For the record here is my setup

  (cl-loop for file in '("/usr/local/bin/bash" "/bin/bash")
	   when (file-exists-p file)
	   do (progn
		(setq shell-file-name file)
		(cl-return)))
  (setenv "SHELL" shell-file-name)

@renard renard closed this as completed Jul 21, 2020
@rien333

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants