-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
z history is pruned if a filesystem is not mounted #307
Comments
not opposed to a way to deal with this, but not 100 sure how I'd go about it. If you want to share your patch maybe I'll get inspired :) (or a PR if your implementation is tidy) |
Hi Unfortunately my code isn't a "patch" to your code, but more of a reimplementation "inspired" by z which suits my needs. The mountpoint stuff is also linux specific in that it reads The logic was simple:
Regards |
Issue: If I use
z
when a filesystem (like /home) is unmounted, all references to /home are instantly purged from the cd history.This has caught me out enough times ( I have a 100TB zfs pool I unmount for maintenance occasionally ) that I use a patched
z
which tracks the mountpoint.Missing paths are filtered as normal when deciding where to go, but paths are only deleted if they are missing AND the
mountpoint
is actually mounted.The text was updated successfully, but these errors were encountered: