سؤال

I have written this simple autocompletition function for my script:

alias activate=". ~/.activate.sh"
_activate() { _files -W ~/Projects; }
compdef _activate activate

It works if I comment out the alias-line, but otherwise I get the following autocompletition:

activate P
Pictures/  Projects/  Public/
هل كانت مفيدة؟

المحلول

The solution was quite simple, adding the following to my .zshrc solved the problem:

setopt complete_aliases
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top