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

Zellij CLI commands don't work after invoking new shell in zellij: "There is no active session!" #3637

Open
bschucha opened this issue Oct 3, 2024 · 1 comment

Comments

@bschucha
Copy link

bschucha commented Oct 3, 2024

Hello,

System info

zellij --version
zellij 0.40.1

stty size
44 99

uname -av
Linux scce06221908 5.14.21-150400.24.116-default #1 SMP PREEMPT_DYNAMIC Fri Apr 12 12:56:11 UTC 2024 (900d642/lp) x86_64 x86_64 x86_64 GNU/Linux

2. Issues with the Zellij UI / behavior

Issue description

After starting zellij, if I source a new shell i.e. zsh, the zellij CLI commands don't work from within that shell, apparently because it can't find any active sessions, even though I'm in one! It just prints: "There is no active session!"

But within this new shell, ZELLIJ_PANE_ID and ZELLIJ_SESSION_NAME variables are set to what I expect (i.e. the pane number and session name I used).

Minimal reproduction

If I don't source a new shell after startup, CLI commands work fine i.e. zellij run -- echo hello opens a new pane and runs 'echo hello' in it.

I also see the erroneous behavior if I use the config variable 'default_shell "/path/to/zsh"' and startup a new zellij session with that shell - I can't run any zellij CLI commands in it. For what it's worth, I have also tried bash with the same result. My default shell is tsch.

@bschucha
Copy link
Author

bschucha commented Oct 3, 2024

For what it's worth, I changed my default linux shell to bash, and now everything works fine. I no longer notice this issue after invoking a zsh shell inside of zellij.

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

1 participant