summaryrefslogtreecommitdiffstats
path: root/completion
diff options
context:
space:
mode:
Diffstat (limited to 'completion')
-rw-r--r--completion/bash/transmission-remote-cli-bash-completion.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/completion/bash/transmission-remote-cli-bash-completion.sh b/completion/bash/transmission-remote-cli-bash-completion.sh
new file mode 100644
index 0000000..1a0e30b
--- /dev/null
+++ b/completion/bash/transmission-remote-cli-bash-completion.sh
@@ -0,0 +1,31 @@
+# bash completion for transmission-remote-cli(1) -*- shell-script -*-
+
+_transmission-remote-cli () {
+ local cur prev opts
+
+ _get_comp_words_by_ref cur prev
+
+ opts="-h --help -v --version -c --connect -s --ssl -f --config --create-config -n --netrc --debug"
+
+ if [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ else
+ case "${prev}" in
+ -c|--connect)
+ # no completion, wait for user input
+ ;;
+ -f|--config)
+ # dirs and files
+ _filedir
+ ;;
+ *)
+ # dirs and torrents
+ _filedir torrent
+ ;;
+ esac
+ fi
+}
+
+complete -F _transmission-remote-cli transmission-remote-cli
+
+# ex: ts=4 sw=4 et filetype=sh
over-highlight'> 2014-04-05Release 0+git20140326.cfc2975-1debian/0+git20140326.cfc2975-1Jonathan McCrohan1-2/+2 2014-04-05d/control: update Homepage (upstream has moved from Gitweb to cgit)Jonathan McCrohan2-1/+2 2014-04-05New Upstream Snapshot (commit cfc2975)Jonathan McCrohan1-0/+6 2014-04-05Imported Upstream version 0+git20140326.cfc2975upstream/0+git20140326.cfc2975Jonathan McCrohan118-656/+877 2014-01-16Release 0+git20140107.1850cf8-1debian/0+git20140107.1850cf8-1Jonathan McCrohan1-2/+2 2014-01-16Update Standards Version to 3.9.5Jonathan McCrohan2-1/+9 No changes required