aboutsummaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli-bash-completion.sh
blob: 2a0cec6891152ef289de2013508f9881cd63e1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

_transmission-remote-cli.py () {
  local cur prev opts

  _get_comp_words_by_ref cur prev

  opts="--version -h --help -c --connect= -s --ssl -f --config= --create-config -n --netrc --debug"

  if [[ ${cur} == -* ]] ; then
    COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
  else
    _filedir torrent
  fi
}

complete -F _transmission-remote-cli.py transmission-remote-cli.py