diff options
Diffstat (limited to '')
-rw-r--r-- | transmission-remote-cli-bash-completion.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/transmission-remote-cli-bash-completion.sh b/transmission-remote-cli-bash-completion.sh new file mode 100644 index 0000000..2a0cec6 --- /dev/null +++ b/transmission-remote-cli-bash-completion.sh @@ -0,0 +1,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 |