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

Detaching from session causes breakage #105

Open
jacobranson opened this issue Dec 31, 2022 · 0 comments
Open

Detaching from session causes breakage #105

jacobranson opened this issue Dec 31, 2022 · 0 comments

Comments

@jacobranson
Copy link

jacobranson commented Dec 31, 2022

Hello!

I am having trouble with my sessions that have been detached and reattached to. Specifically, if I do the something like the following:

$ nix-user-chroot ~/.nix /bin/bash -lc "~/.nix-profile/bin/tmux"

Inside this chroot environment, everything works fine. However, if I then detach from the session using "CTRL+B D", and execute the command to attach to my previous session:

$ nix-user-chroot ~/.nix /bin/bash -lc "~/.nix-profile/bin/tmux attach"

I'll get something like:

$ ls
-bash: /usr/bin/ls: No such file or directory

If I try to cd around, the only directory that exists is /. Can't access /nix, or /home, or anything else. Only thing I can use is shell built-ins, or quit the session with CTRL+D. My $PATH isn't any different, nor anything else that stands out to me. If I were to create a fresh tmux session again, everything would work fine. Detaching and reattaching causes the issues. I will also note that this is independent of session management application. I tried both tmux and abduco, both with the same result.

Is there anything I can do to make this functionality work? Happy to provide any additional information or perform tests as needed.

Thank you!

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