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

completions not working with antigen #2

Closed
iimog opened this issue Dec 28, 2017 · 0 comments
Closed

completions not working with antigen #2

iimog opened this issue Dec 28, 2017 · 0 comments

Comments

@iimog
Copy link
Contributor

iimog commented Dec 28, 2017

Hey @kloetzl
thanks for this wonderful set of completions. Unfortunately they do not work out of the box with antigen.
I'm using zsh 5.1.1 (x86_64-ubuntu-linux-gnu) with Antigen v2.2.2 (bd9d533).

The simple command

antigen bundle kloetzl/biozsh

installs the repo just fine (to ~/.antigen/bundles/kloetzl/biozsh) and sources the included biozsh.zsh.
However the sourcing is done with the home folder as working directory so the $PWD inside biozsh.zsh does not work properly. Sourcing it manually from anywhere but the biozsh directory results in the same problem. A workaround is to determine the real location of the zsh file using this expression:

BIOZSH_DIR="${funcsourcetrace[1]%/*}"

This works according to this SO answer. This way the completions should work no matter from where the file is sourced. It also fixes the installation with antigen.

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

1 participant