zshrc: refactor slow dir/fs handling