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

Very slow command execution on OSX #28

Open
noctuid opened this issue Oct 28, 2019 · 1 comment
Open

Very slow command execution on OSX #28

noctuid opened this issue Oct 28, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@noctuid
Copy link

noctuid commented Oct 28, 2019

Issue Details

Loading this plugin greatly slows command execution on OSX. I don't seem to have any issues on Linux but don't know if OS is actually the reason. Without this plugin, ls executes instantly, for example. With it, it takes 2-3 seconds from when I hit enter before I can type in the prompt again.

Operating System (uname -a)

Darwin ga69C02W91MBHTDF 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64

zsh version (zsh --version)

zsh 5.7.1 (x86_64-apple-darwin18.2.0)

auto-notify version (echo "$AUTO_NOTIFY_VERSION")

0.8.0

How is auto-notify installed?

Zplugin. Same issue with zplug.

Steps to reproduce the issue

Minimal .zshrc that I have the problem with:

if [[ ! -f ~/.zplugin/bin/zplugin.zsh ]]; then
	git clone https://github.com/zdharma/zplugin.git ~/.zplugin/bin
fi

if [[ -f ~/.zplugin/bin/zplugin.zsh ]]; then
	source ~/.zplugin/bin/zplugin.zsh

	zplugin ice wait lucid \
			atload"AUTO_NOTIFY_IGNORE+=(vimpager emacs rn ranger vimus)"
	zplugin light "MichaelAquilina/zsh-auto-notify"
fi

Minimal .zshrc with zplug:

if [[ ! -f ~/.zplug/init.zsh ]]; then
	git clone https://github.com/zplug/zplug ~/.zplug
fi

if [[ -f ~/.zplug/init.zsh ]]; then
	source ~/.zplug/init.zsh

	zplug "MichaelAquilina/zsh-auto-notify"

	# Install plugins if there are plugins that have not been installed
	if ! zplug check --verbose; then
		printf "Install? [y/N]: "
		if read -q; then
			echo; zplug install
		fi
	fi

	# Then, source plugins and add commands to $PATH
	zplug load --verbose
fi
@MichaelAquilina MichaelAquilina added the bug Something isn't working label Jan 3, 2020
@MichaelAquilina
Copy link
Owner

I'm afraid I somehow missed this issue sorry about that @noctuid

I'm guessing it's something to do with the different notification systems in use. However it shouldn't need to slow down if its only switching between directories and not sending any notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants