Guest User

Untitled

a guest
May 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #source this from your .zshrc somehow
  2. _fake() {
  3. local cur
  4. cur="${COMP_WORDS[COMP_CWORD]}"
  5. RESULTS=$(fake -s build --list 2>/dev/null | tail -n +2 | awk '{$1=$1};1')
  6. COMPREPLY=($(compgen -W "$RESULTS" -- "$cur"))
  7. }
  8.  
  9. complete -F _fake fake
  10. compdef fake
Add Comment
Please, Sign In to add comment