diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-05-24 00:57:23 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-05-24 01:30:34 +0100 |
commit | 725864f3424df72a21613eefcf30a9aac0bd4433 (patch) | |
tree | 9e6324c15e355d2e9a23ebf505d1f7912827558b /transmission-remote-cli-bash-completion.sh | |
parent | ea5bceabd0c56f04551808b412111f6507b6b3f7 (diff) | |
parent | 9a0b25b00147e7746c08241dfd00bea349f406c8 (diff) | |
download | transmission-remote-cli-725864f3424df72a21613eefcf30a9aac0bd4433.tar.gz |
Merge tag 'upstream/1.3'
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 |