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

FPP is really slow if your zsh config takes a while to load #301

Open
spatten opened this issue May 11, 2019 · 1 comment
Open

FPP is really slow if your zsh config takes a while to load #301

spatten opened this issue May 11, 2019 · 1 comment

Comments

@spatten
Copy link

spatten commented May 11, 2019

When I run fpp there's a 3 second pause between me selecting what file I want to open and the file actually opening in my editor. My editor is an already running emacs daemon, so it should be super fast to open a file.

I'm also running zsh as my shell.

It took me a while to figure out, but the root cause is that fpp is starting up a new instance of zsh with the -i flag, and that my .zshconfig is really big and takes a while to load.

If I edit the fpp script and comment out these lines, then the pause goes away (and everything still works just fine):

if [ -z "$VIMRUNTIME" -a "$NONINTERACTIVE" = false ]; then
  IFLAG="-i"
fi

So this is mostly my fault -- I have too much config in my .zshrc and it takes a long time to load -- but everything works for me without the -i flag being passed to zsh. I'm assuming that there are use cases where the -i flag is necessary, but this might be causing tons of people to think that fpp is slow to open.

Would it be possible to set an env variable or something so that the -i flag is never passed to zsh, or to not use the -i flag by default?

@pcottle
Copy link
Contributor

pcottle commented May 12, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants