commit 4593534a8fe6a5ea90fcce7c10940e31322768a8 Author: David Goulet dgoulet@ev0ke.net Date: Mon Mar 3 16:40:43 2014 -0500
Extras: add bash and zsh completion file
Those files need to be installed by hand or from your distribution package.
They've been taken from the old torsocks (1.3) package.
Signed-off-by: David Goulet dgoulet@ev0ke.net --- Makefile.am | 4 ++-- configure.ac | 1 + extras/torsocks-bash_completion | 3 +++ extras/torsocks-zsh_completion | 9 +++++++++ 4 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am index 7c3253a..d53b5fc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ ACLOCAL_AMFLAGS = -I config
-SUBDIRS = src doc tests +SUBDIRS = src doc tests extras
dist_doc_DATA = ChangeLog
-EXTRA_DIST = gpl-2.0.txt +EXTRA_DIST = gpl-2.0.txt extras/torsocks-bash_completion diff --git a/configure.ac b/configure.ac index a3cadf1..92999f3 100644 --- a/configure.ac +++ b/configure.ac @@ -257,6 +257,7 @@ AC_SUBST(DEFAULT_INCLUDES)
AC_CONFIG_FILES([ Makefile + extras/Makefile src/Makefile src/bin/Makefile src/bin/torsocks diff --git a/extras/Makefile.am b/extras/Makefile.am new file mode 100644 index 0000000..e69de29 diff --git a/extras/torsocks-bash_completion b/extras/torsocks-bash_completion new file mode 100644 index 0000000..c54aada --- /dev/null +++ b/extras/torsocks-bash_completion @@ -0,0 +1,3 @@ +#-*- mode: shell-script;-*- + +complete -F _command torsocks diff --git a/extras/torsocks-zsh_completion b/extras/torsocks-zsh_completion new file mode 100644 index 0000000..ebb71dc --- /dev/null +++ b/extras/torsocks-zsh_completion @@ -0,0 +1,9 @@ +#compdef - torsocks + +# precommands is made local in _main_complete +precommands+=($words[1]) + +shift words +(( CURRENT-- )) + +_normal
tor-commits@lists.torproject.org