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

Get error with zsh-nix-shell activated #1

Closed
nikitavoloboev opened this issue May 27, 2018 · 6 comments · Fixed by #2
Closed

Get error with zsh-nix-shell activated #1

nikitavoloboev opened this issue May 27, 2018 · 6 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@nikitavoloboev
Copy link

I installed this plugin with Antibody and tried to test nix-shell but I got an error:

❯ nix-shell -p hello
whereis: illegal option -- b
usage: whereis program [...]
nix-shell:2: bad pattern: ARGS=(-p

However if I stop using this plugin, it works with no errors:

❯ nix-shell -p hello

[nix-shell:~]$

Not sure why this happens.

@chisui
Copy link
Owner

chisui commented May 27, 2018

I have never heard of antibody so it's not supported currently.

What shell and version are you using?

Does it work if you install it directly?

@nikitavoloboev
Copy link
Author

What shell and version are you using?

❯ zsh --version
zsh 5.5.1 (x86_64-apple-darwin16.6.0)

Does it work if you install it directly?

I tried to put contents of this file to the end of my zshrc.

Same error.

@chisui chisui added the bug Something isn't working label May 27, 2018
@chisui
Copy link
Owner

chisui commented May 27, 2018

I could not reproduce this bug with zsh 5.5.1 on NixOs. I don't have access to a Mac but going by this and this issue it seems that whereis works diffently on Mac.

Does #2 fix your issue?

@nikitavoloboev
Copy link
Author

It does not. I get this error now:

❯ nix-shell -p hello
nix-shell:2: bad pattern: ARGS=(-p

~

Here is my zshrc with your plugin.

@chisui
Copy link
Owner

chisui commented May 27, 2018

I can't reproduce that issue and I double checked the zsh documentation. There was an error in zsh-5.0.8 though that looks like this.

I changed some stuff around in #2. Is it working now?

@nikitavoloboev
Copy link
Author

nikitavoloboev commented May 27, 2018

It's solved. Thanks @chisui

@chisui chisui closed this as completed May 27, 2018
chisui added a commit that referenced this issue May 27, 2018
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

Successfully merging a pull request may close this issue.

2 participants