zsh-goto/_goto

10 lines
160 B
Text
Raw Normal View History

2018-01-16 20:33:54 +00:00
#!/usr/bin/zsh
function _goto {
2018-01-16 20:33:54 +00:00
for label in $(_awk '{print $1;}' `_goto_file`)
do
2018-01-16 20:33:54 +00:00
compadd "$@" "${label}"
done
};
2018-01-16 20:08:09 +00:00
complete -o default -F _goto goto