-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
5 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#-*- mode: shell-script;-*- | ||
|
||
complete -F _command torsocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |