~nitrokey/nitrokey/release

« back to all changes in this revision

Viewing changes to data/bash-autocomplete/nitrokey-app

  • Committer: ggkitsas
  • Date: 2015-04-06 11:29:10 UTC
  • Revision ID: git-v1:5264a39ba4fc1982a95a6380bfb5595cfecc6a2e
nsis installer script

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
_nitrokey_app()
2
 
{
3
 
    local cur prev opts
4
 
    COMPREPLY=()
5
 
    cur="${COMP_WORDS[COMP_CWORD]}"
6
 
    prev="${COMP_WORDS[COMP_CWORD-1]}"
7
 
    opts="--help --version"
8
 
 
9
 
    if [[ ${cur} == -* ]] ; then
10
 
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
11
 
        return 0
12
 
    else
13
 
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
14
 
    fi
15
 
 
16
 
}
17
 
complete -F _nitrokey_app nitrokey-app