You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a systemd automount, which is an external USB drive and thus not always available. If I have switched to the mount point recently and it is listed in .zdirs, but currently the drive is not available, zsh hangs while loading /etc/zsh/zshrc.
I assume this should also work with any other directories which are not available anymore.
How to reproduce
Create an automount for /mnt/usb
cd /mnt/usb
Close the terminal
Umount /mnt/usb and unplug the device
Start a new terminal and load the profile from /etc/zsh/zshrc
Expected behavior
The script should detect that /mnt/usb is no longer available and skip calling cd /mnt/usb.
Actual behavior
In line 1625 of the profile file, cd /mnt/usb is called. The call hangs because the device is longer available. Even after the automount times out, the terminal still doesn't finish loading the profile.
The text was updated successfully, but these errors were encountered:
I have a systemd automount, which is an external USB drive and thus not always available. If I have switched to the mount point recently and it is listed in
.zdirs, but currently the drive is not available, zsh hangs while loading/etc/zsh/zshrc.I assume this should also work with any other directories which are not available anymore.
How to reproduce
/mnt/usbcd /mnt/usb/mnt/usband unplug the device/etc/zsh/zshrcExpected behavior
The script should detect that
/mnt/usbis no longer available and skip callingcd /mnt/usb.Actual behavior
In line 1625 of the profile file,
cd /mnt/usbis called. The call hangs because the device is longer available. Even after the automount times out, the terminal still doesn't finish loading the profile.The text was updated successfully, but these errors were encountered: