zsh-goto/_goto

9 lines
160 B
Bash

#!/usr/bin/zsh
function _goto {
for label in $(_awk '{print $1;}' `_goto_file`)
do
compadd "$@" "${label}"
done
};
complete -o default -F _goto goto