Skip to content

Commit

Permalink
adding zsh version
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Jul 27, 2015
1 parent 96fbe28 commit 0e51239
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autocomplete/_opsk
@@ -0,0 +1,11 @@
#compdef opsk
#autoload

local lines words

words=(${(f)"$(opsk | grep opsk | cut -d " " -f 4)"} )
lines=(${(f)"$(opsk | grep opsk | cut -d '#' -f 2)"})

compadd -l -d lines -a -- words

# compadd `opsk | grep opsk | cut -d " " -f 4`

0 comments on commit 0e51239

Please sign in to comment.