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

Could not find the SHELL variable: NotPresent #700

Closed
xffxff opened this issue Sep 7, 2021 · 6 comments
Closed

Could not find the SHELL variable: NotPresent #700

xffxff opened this issue Sep 7, 2021 · 6 comments

Comments

@xffxff
Copy link

xffxff commented Sep 7, 2021

Basic information

zellij --version: 0.16.0
tput lines: 52
tput cols: 211
uname -av or ver(Windows): Linux 5.0.9-1.el7.elrepo.x86_64 #1 SMP Sat Apr 20 09:03:57 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

image

@imsnif
Copy link
Member

imsnif commented Sep 7, 2021

Hey @xffxff - sorry about the experience!

The $SHELL variable is how we find out what your default shell is in order to open new terminals. I'm not sure why it's not defined on your machine (I guess echo $SHELL is blank for you?)

A workaround can be to either set that variable permanently (with something like export SHELL=/bin/bash) or to start Zellij by explicitly specifying your shell with: zellij options --default-shell /bin/bash (or whichever shell you'd like to specify).

@xffxff
Copy link
Author

xffxff commented Sep 7, 2021

@imsnif echo $SHELL does not return empty
image
But zellij options --default-shell /bin/bash works for me.

@xffxff
Copy link
Author

xffxff commented Sep 7, 2021

@imsnif It's very strange that when I manually set the environment variable ( export SHELL=/bin/bash), zellij can work normally again
image

@xffxff
Copy link
Author

xffxff commented Sep 8, 2021

@imsnif My problem is solved, should I close the issue?

@a-kenji
Copy link
Contributor

a-kenji commented Sep 8, 2021

@xffxff,
If you don't mind, it would be awesome if you documented how
your issue was fixed - for anyone experiencing a similar problem.

But yes if it is fixed you should close it.

Thanks for reaching out and please don't hesitate contacting us again!

@xffxff
Copy link
Author

xffxff commented Sep 8, 2021

I fixed it by manually setting the environment variable export SHELL=/bin/bash, and start Zellij by explicitly specifying the shell can also work (zellij options --default-shell /bin/bash)

@xffxff xffxff closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants