Skip to content
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

Oh my zsh update broke sshfs folder #8541

Open
NofelYaseen opened this issue Jan 15, 2020 · 13 comments
Open

Oh my zsh update broke sshfs folder #8541

NofelYaseen opened this issue Jan 15, 2020 · 13 comments
Labels
Area: theme Issue or PR related to a theme Support Request for support

Comments

@NofelYaseen
Copy link

I am using macOS Catalina.

Everything worked fine until the latest update.
zsh version: zsh 5.7.1 (x86_64-apple-darwin19.0.0)

Everything looks okay for normal folder. However, for remote file systems, it is stuck, until I press Ctrl +C and then typecd ..

I am attaching the screenshot below:

Screen Shot 2020-01-15 at 10 40 01 AM

@NofelYaseen NofelYaseen added the Support Request for support label Jan 15, 2020
@NofelYaseen NofelYaseen changed the title Oh my zsh update broke fuse drive Oh my zsh update broke sshfs folder Jan 15, 2020
@mcornella
Copy link
Member

Can you post your zshrc file?

@NofelYaseen
Copy link
Author

export ZSH="/Users/nofelyaseen/.oh-my-zsh"
ZSH_THEME="af-magic"

plugins=(git)

source $ZSH/oh-my-zsh.sh

All other lines are commented out.
I only changed the theme from default.

@ronnieissa
Copy link

Not sure if you have the same issue, but I had this as well.
I troubleshot the issue by setting LogLevel DEBUG3 in the sshd_config file and monitoring the /var/log/auth.log file

In my situation, Im running debian 10, kernel 4.19.0-6

The error I was getting was that the /root/ssh/authorized_keys file could not be found, but as we all know that is NOT the correct path. It should be /root/.ssh/authorized_keys

Im not sure how or why this changed, but to confirm the validity, I ran mv .ssh ssh and everything started working again. Im thinking of setting up tripwire on a clean image and installing ohmyzsh again to see how this got changed.

@NofelYaseen
Copy link
Author

It does not resolve the underlying issue with ohmyzsh.
I don't want to rename .ssh as it could disrupt other things.
There has to be an alternative.

@mcornella
Copy link
Member

Does setopt promptsubst solve it?

@mcornella mcornella added the Area: theme Issue or PR related to a theme label Feb 5, 2020
@jcatala
Copy link

jcatala commented May 7, 2020

Suffering the same issue, zsh hangs on cd ing into sshfs mounted dir 👍
bash/sh works fine on navigation .

image

cheers, 😄 !

@marcoiai
Copy link

marcoiai commented Sep 3, 2020

I think I have found the origin of the problem, so I'm posting here. For some reason, when you do a git command on a sshfs directory, it takes forever, so is more of a GIT -> sshfs problem than zsh or ohmyszh. Since ohmyszh automatically git status and some other commands for git directories, if you have this setup like mine, this is the problem, there's any config to ohmyszh avoid read GIT info on certain directories?

@NofelYaseen
Copy link
Author

There is a way to do, but we will have to run it in each subdirectory:

git config oh-my-zsh.hide-status 1

Ideally, I want to do it for all subdirectories.

@mcornella
Copy link
Member

So this is just git breaking in sshfs directories, if I understand correctly? If that is the case, this should be fixed by async-ing the git calls in git prompts (work in progress).

@marcoiai
Copy link

marcoiai commented Jan 4, 2021 via email

@adrienauriol
Copy link

So this is just git breaking in sshfs directories, if I understand correctly? If that is the case, this should be fixed by async-ing the git calls in git prompts (work in progress).

Hi,
I'm having the same issue. Did you manage to fix the problem ? :)
Cheers,
Adrien

@jcwatson11
Copy link

I am also experiencing the same issue. Thank you for your work. Please fix. :)

@marcoiai
Copy link

marcoiai commented Apr 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: theme Issue or PR related to a theme Support Request for support
Projects
Status: Backlog
Development

No branches or pull requests

7 participants