kloetzl / biozsh

the z in bioinformatics
MIT License
33 stars 5 forks source link

Generalize detection of biozsh directory #3

Closed iimog closed 6 years ago

iimog commented 6 years ago

Fix #2 There might be more elegant ways to determine the absolute location of the sourced zsh file. Only tested with direct sourcing and antigen, not zgen.

kloetzl commented 6 years ago

Thanks for this suggestion. It is way better than my old method.

However, note that it now fails when biozsh.zsh is sourced with a relative path.

source ../path/biozsh.zsh

Now the completions are also relative and break if the user is not in the right directory.