-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Changing a directory takes almost half a second #157
Comments
Have you visited any remote directories? If so, could be related to #85. |
Nope. I've also deleted |
Maybe try |
Thanks for fish_trace! I didn't know about it.
|
What happens if you run |
Yes. This seems to be the relevant part:
Any idea what's going on here? I don't understand this syntax Here is the full output
|
I’m just poking around here, but what happens if you run |
Looking at
|
To answer your first question, I don't see any error.
|
I changed ownership to amir:amir, but same permission error |
Hmm. Probably not that, then. Can you see where the script is hanging when you run cd? |
I mean if you cd to a directory, what command is it hanging on? |
I don't know how to check that. I just see the output, no timing for each step |
Since fish_trace prints the lines as they are executed, I thought it might be possible to see which command it printed and then hung on. If not, try this to profile the function: |
ooooh very neat!! i tried looking for something like this and couldn't find it Is it normal that there are ... in the middle? Here it is:
|
The On my machine, this is what I get from
What time do you get? |
Interesting! Does type take as long with other executables (like |
yes. around the same time for all executable files. takes micros for built in (type time etc.) or functions |
Hmm. I think we've determined this is an issue with fish, not enhancd. Maybe try reinstalling fish? If that doesn't fix it, I'd make an issue with the fish-shell people. You could also try testing enhancd with bash or zsh, and seeing if the problem persists. |
So the guys in Fish pointed me in the right direction immediately. Now I can finally get decent performance: Can't thank you enough! |
What did you expect to happen?
changing directory should be instant
What actually happened?
takes around 400ms
Output
to the left is what i get with enhancd, to the right is right before i installed it
install and uninstall method:
Additional context
using fish 3.2.2
enhancd version 2.2.4
fisher version 4.3.0
prompt is starship version 0.51
The text was updated successfully, but these errors were encountered: