zap-zsh / zap

:zap: Zap is a minimal zsh plugin manager
https://www.zapzsh.com/
GNU General Public License v3.0
964 stars 35 forks source link

Zsh opens to / instead of $PWD when using systemd-homed with subvolume storage #120

Closed thomascft closed 9 months ago

thomascft commented 1 year ago

Describe the bug

I'be been having an odd issue with zsh lately. I use WezTerm as my choice terminal emulator running zsh. I can open wezterm and zsh opens in my home directory, after that I'll click new tab or run zsh in my current session. The child instance opens to / instead, and the same issue happens in the tty. I've noticed it only happens when my /zshrc contains plug lines. If I remove them it no longer has the issue with opening to /. I've also tested it in a vm and had the same issue. You can find my zsh configuration on my dotfiles repo under the zsh folder.

Steps to reproduce

Create a systemd-homed user using subvolume storage and use https://raw.githubusercontent.com/thomascft/dotfiles/stow/zsh/.zshrc

Expected behavior

Zsh should open to $PWD

Screenshots and recordings

No response

OS / Linux distribution

Arch Linux

Zsh version

5.9

Zap version

v0.2.0 on commit ca9e52d

Terminal emulator

Wezterm

If using WSL on Windows, which version of WSL

None

Additional context

I don't have any issues on zplug I'm showing similar issues under zplug, not sure where to post though

wintermi commented 1 year ago

Could you please reconfirm if this issue still occurs with the latest version of Zap.