Skip to content

Commit a02a7bc

Browse files
authored
Merge pull request #916 from scop/feat/more-3rdparty
feat: add/change to more 3rd party loaders
2 parents 6806708 + 63a3bdf commit a02a7bc

File tree

10 files changed

+24
-80
lines changed

10 files changed

+24
-80
lines changed

completions/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
/compgen
3636
/composite
3737
/conjure
38+
/_consul
3839
/cowthink
3940
/createdb
4041
/createuser
@@ -140,6 +141,9 @@
140141
/muttng
141142
/ncal
142143
/neomutt
144+
/_nomad
145+
/_op
146+
/_packer
143147
/pbzip2
144148
/pccardctl
145149
/pdlzip
@@ -229,6 +233,7 @@
229233
/star
230234
/stream
231235
/sudoedit
236+
/_terraform
232237
/tightvncviewer
233238
/tracepath6
234239
/typeset

completions/Makefile.am

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ bashcomp_DATA = 2to3 \
292292
nsupdate \
293293
ntpdate \
294294
oggdec \
295-
_op \
296295
openssl \
297296
opera \
298297
optipng \
@@ -446,6 +445,7 @@ bashcomp_DATA = 2to3 \
446445
userdel \
447446
usermod \
448447
valgrind \
448+
_vault \
449449
vipw \
450450
vmstat \
451451
vncviewer \
@@ -538,6 +538,7 @@ CLEANFILES = \
538538
compgen \
539539
composite \
540540
conjure \
541+
_consul \
541542
cowthink \
542543
createdb \
543544
createuser \
@@ -671,6 +672,9 @@ CLEANFILES = \
671672
muttng \
672673
ncal \
673674
neomutt \
675+
_nomad \
676+
_op \
677+
_packer \
674678
pbzip2 \
675679
pccardctl \
676680
pdlzip \
@@ -778,6 +782,7 @@ CLEANFILES = \
778782
star \
779783
stream \
780784
sudoedit \
785+
_terraform \
781786
tightvncviewer \
782787
tracepath6 \
783788
typeset \
@@ -880,7 +885,7 @@ symlinks: $(DATA)
880885
$(ss) gkrellm \
881886
gkrellm2
882887
$(ss) _golangci-lint \
883-
_hugo _kn _sshi _upctl _vacuum
888+
_hugo _kn _op _sshi _upctl _vacuum
884889
$(ss) gpgv \
885890
gpgv2
886891
$(ss) gssdp-discover \
@@ -1011,6 +1016,8 @@ symlinks: $(DATA)
10111016
tracepath6
10121017
$(ss) update-alternatives \
10131018
alternatives
1019+
$(ss) _vault \
1020+
_consul _nomad _packer _terraform
10141021
$(ss) vipw \
10151022
vigr
10161023
$(ss) vncviewer \

completions/_op

Lines changed: 0 additions & 63 deletions
This file was deleted.

completions/_vault

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 3rd party completion loader for commands -*- shell-script -*-
2+
# supporting their use of as a `complete -C` handler.
3+
#
4+
# This serves as a fallback in case the completion is not installed otherwise.
5+
6+
type "$1" &>/dev/null && complete -C "\"$1\" 2>/dev/null" "$1" "${1##*/}"
7+
8+
# ex: filetype=sh

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ EXTRA_DIST = \
1818
mount.linux \
1919
newgrp \
2020
nmcli \
21-
op \
2221
renice \
2322
repomanage \
2423
reptyr \
@@ -35,6 +34,7 @@ EXTRA_DIST = \
3534
udevadm \
3635
umount \
3736
umount.linux \
37+
vault \
3838
write \
3939
xm \
4040
yq \

test/fallback/completions/op

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/fallback/completions/vault

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../completions/_vault

test/t/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ EXTRA_DIST = \
420420
test_objdump.py \
421421
test_od.py \
422422
test_oggdec.py \
423-
test_op.py \
424423
test_openssl.py \
425424
test_opera.py \
426425
test_optipng.py \

test/t/test_op.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/test-cmd-list.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ ntpdate
246246
objcopy
247247
od
248248
oggdec
249-
op
250249
openssl
251250
opera
252251
optipng

0 commit comments

Comments
 (0)