Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #source this from your .zshrc somehow
- _fake() {
- local cur
- cur="${COMP_WORDS[COMP_CWORD]}"
- RESULTS=$(fake -s build --list 2>/dev/null | tail -n +2 | awk '{$1=$1};1')
- COMPREPLY=($(compgen -W "$RESULTS" -- "$cur"))
- }
- complete -F _fake fake
- compdef fake
Add Comment
Please, Sign In to add comment