Comments (8)
Closing as Good Enough.
from zsh4humans.
What's the output of df --output=fstype
for the problematic directories while they exist?
When you have a problematic directory (one that eventually times out on accessing it)
How long does it take for it to time out?
z4h will hang on opening a new zsh instance
Does it hang for good or only for as long as the timeout?
I'm just trying to explore options for fixing this that don't require user configuration. In the worst case I'll add a flag to disable persistent directory as you suggested but perhaps there is a better way.
from zsh4humans.
What's the output of df --output=fstype for the problematic directories while they exist?
I'll get back to you when I'm home and can replicate this again (should be this evening or tomorrow).
How long does it take for it to time out?
Over a minute for sure until zsh gets unstuck from the KDE kio case, I'll get back with a time measurement if you want.
Does it hang for good or only for as long as the timeout?
It does get unstuck again after the timeout. But again, this takes well over a minute.
from zsh4humans.
What's the output of df --output=fstype for the problematic directories while they exist?
Here are some I have seen:
fuse.kio-fuse
fuse.gvfsd-fuse
fuse.sshfs
(hangs for much shorter than the others, only ~10 seconds)cifs
-- Note if this is inaccessible,df
hangs, as does a lot of other commands such asumount
.smb3
-- Note if this is inaccessible,df
hangs, as does a lot of other commands such asumount
.
I'm not set up to test nfs.
I have also noticed that many other things hangs, such as even typing in the path, it seems to hang as it is trying to do syntax highlighting and decide if the path should be underlined for it being a valid path. Presumably this is a feature of zsh-syntax-highlighting and should be reported separately to there.
from zsh4humans.
cifs
-- Note if this is inaccessible,df
hangs, as does a lot of other commands such asumount
.smb3
-- Note if this is inaccessible,df
hangs, as does a lot of other commands such asumount
.
That's rough. I cannot think of a good automated solution that would handle this. Seems like disabling persistent dir history is the best option for you. You can do it like this:
zstyle ':z4h:dir-history:' max-size 0
I have also noticed that many other things hangs, such as even typing in the path, it seems to hang as it is trying to do syntax highlighting and decide if the path should be underlined for it being a valid path. Presumably this is a feature of zsh-syntax-highlighting and should be reported separately to there.
There is ZSH_HIGHLIGHT_DIRS_BLACKLIST.
from zsh4humans.
There is ZSH_HIGHLIGHT_DIRS_BLACKLIST.
Thanks, I already found that out separately after writing my previous post. That does help a bit.
That's rough. I cannot think of a good automated solution that would handle this.
An option similar to ZSH_HIGHLIGHT_DIRS_BLACKLIST
for Z4H purposes could perhaps work here.
As for umount hanging etc, there seem to be some mount options that could help echo_interval=n
for cifs/smb3 for example. From what I can read, NFS will have similar behaviour, but be more complicated to set up for sensible timeouts (-o soft,timeo=20
though apparently using soft
might cause data corruption on NFS. I have not had time to test any of this yet, and I normally use the KDE kio approach for remote file SMB systems anyway. (I do also use sshfs between Linux machines.)
from zsh4humans.
zstyle ':z4h:dir-history:' max-size 0
Is this ☝️ good enough for you? I'd rather not add a new option if an existing option solves your use case.
from zsh4humans.
Is this point_up good enough for you? I'd rather not add a new option if an existing option solves your use case.
Yes, it seems to work correctly. I'm happy with this solution as persistent directory history is not something I use, and normal popd
to go back one level of cd
seems to still work.
from zsh4humans.
Related Issues (20)
- Vi mode/bindings with tab completion menu HOT 7
- bug: .zshrc turned into numbers on backup folder HOT 8
- [question]: How to remove p10k. and prompt on bottom option doesnt seem to work HOT 11
- Documentation Request: Elaborate on caveats of zsh4humans when using vi bindings HOT 6
- Aliasing an existing command to multiple commands hangs the line editor HOT 4
- Support MSYS2/MINGW64 HOT 1
- getting annoying symbol HOT 2
- SSH HOST suggestion issue HOT 1
- I prefer the non-fzf auto-complete behavior, how to turn it off? HOT 1
- Error when defining `compdef kubecolor=kubectl` in .zshrc HOT 1
- Integrated tmux breaks new VS Code venv activation HOT 7
- Question/Issue with terminfo and alacritty HOT 4
- [Question] why tmux prompt at the bottom? HOT 2
- Report invalid zstyle options HOT 1
- Include a version identifier and time stamp in the initial `.zshrc` during installation HOT 1
- Completion list-dirs-first HOT 2
- fzf completion return query if no match
- z4h-fzf-history widget fails with special characters in command history HOT 2
- Install fzf completions without the rest of the zsh4human framework HOT 2
- `setopt no_global_rcs` breaks `snap` (Snapcraft) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh4humans.