Skip to content

Commit 42d2d95

Browse files
Freed-Wurofl0r
authored andcommitted
Remove unused code in zsh completion
Move completions/_proxychains4 to completions/zsh/_proxychains4 to avoid confusion
1 parent 133e06b commit 42d2d95

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PXCHAINS = proxychains4
4949
PXCHAINS_D = proxychains4-daemon
5050
ALL_TOOLS = $(PXCHAINS) $(PXCHAINS_D)
5151
ALL_CONFIGS = src/proxychains.conf
52-
ZSH_COMPLETION = completions/_proxychains4
52+
ZSH_COMPLETION = completions/zsh/_proxychains4
5353

5454
-include config.mak
5555

@@ -70,13 +70,13 @@ $(DESTDIR)$(libdir)/%: %
7070
$(DESTDIR)$(sysconfdir)/%: src/%
7171
$(INSTALL) -D -m 644 $< $@
7272

73-
$(DESTDIR)$(zshcompletiondir)/%: completions/%
73+
$(DESTDIR)$(zshcompletiondir)/%: completions/zsh/%
7474
$(INSTALL) -D -m 644 $< $@
7575

7676
install-libs: $(ALL_LIBS:%=$(DESTDIR)$(libdir)/%)
7777
install-tools: $(ALL_TOOLS:%=$(DESTDIR)$(bindir)/%)
7878
install-config: $(ALL_CONFIGS:src/%=$(DESTDIR)$(sysconfdir)/%)
79-
install-zsh-completion: $(ZSH_COMPLETION:completions/%=$(DESTDIR)$(zshcompletiondir)/%)
79+
install-zsh-completion: $(ZSH_COMPLETION:completions/zsh/%=$(DESTDIR)$(zshcompletiondir)/%)
8080

8181
clean:
8282
rm -f $(ALL_LIBS)

completions/_proxychains4

-12
This file was deleted.

completions/zsh/_proxychains4

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#compdef proxychains4
2+
3+
_arguments \
4+
'(- : *)--help[More help in README file]' \
5+
'-q[makes proxychains quiet - this overrides the config setting]' \
6+
'-f[allows one to manually specify a configfile to use]: :_files' \
7+
'(-)1: :{_command_names -e}' \
8+
'*:: :_normal'

0 commit comments

Comments
 (0)