aboutsummaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli-bash-completion.sh
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-05-24 00:57:23 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-05-24 00:57:23 +0100
commit9a0b25b00147e7746c08241dfd00bea349f406c8 (patch)
tree904edc6e246419c240650c37fef561ca5a70deef /transmission-remote-cli-bash-completion.sh
parent6dfa49c0958a784ed86c5055f2a7b7c1fb0573cc (diff)
downloadtransmission-remote-cli-9a0b25b00147e7746c08241dfd00bea349f406c8.tar.gz
Imported Upstream version 1.3upstream/1.3
Diffstat (limited to '')
-rw-r--r--transmission-remote-cli-bash-completion.sh17
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