Skip to content

Commit

Permalink
Extras: add bash and zsh completion file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dgoulet committed Mar 3, 2014
1 parent d8de94d commit 4593534
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ AC_SUBST(DEFAULT_INCLUDES)

AC_CONFIG_FILES([
Makefile
extras/Makefile
src/Makefile
src/bin/Makefile
src/bin/torsocks
Expand Down
Empty file added extras/Makefile.am
Empty file.
3 changes: 3 additions & 0 deletions extras/torsocks-bash_completion
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#-*- mode: shell-script;-*-

complete -F _command torsocks
9 changes: 9 additions & 0 deletions extras/torsocks-zsh_completion
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#compdef - torsocks

# precommands is made local in _main_complete
precommands+=($words[1])

shift words
(( CURRENT-- ))

_normal

0 comments on commit 4593534

Please sign in to comment.