Sha256: 8dc4ff9f1aa85193244000ea62959402fc15fb87539b637c5ddde07dd5d5082d
Contents?: true
Size: 770 Bytes
Versions: 5
Compression:
Stored size: 770 Bytes
Contents
_ppl() { local cur prev opts nick_cmds base COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" # Complete options opts="add age bday completion email init ls mutt mv name nick org phone post pull push remote rm scrape shell show url version" if [[ ${prev} == "ppl" ]]; then COMPREPLY=($(compgen -W "${opts}" -- ${cur})) return 0 fi # Complete nicknames nick_cmds=([age]="" [bday]="" [email]="" [mv]="" [name]="" [nick]="" [org]="" [phone]="" [post]="" [rm]="" [show]="" [url]="") if [[ $nick_cmds[${prev}] ]]; then local nicknames=$(for x in `ppl nick --no-color | cut -d ':' -f 1`; do echo ${x} ; done ) COMPREPLY=( $(compgen -W "${nicknames}" -- ${cur}) ) return 0 fi } complete -F _ppl ppl
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ppl-1.22.2 | completions/bash |
ppl-1.22.1 | completions/bash |
ppl-1.22.0 | completions/bash |
ppl-1.21.0 | completions/bash |
ppl-1.20.0 | completions/bash |