Skip to content

Commit bc5dfff

Browse files
committed
feat(syncthing): add 3rd party fallback completion loader
1 parent b10f78c commit bc5dfff

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

completions-fallback/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ cross_platform = adb.bash \
5858
svn.bash \
5959
svnadmin.bash \
6060
svnlook.bash \
61+
syncthing.bash \
6162
task.bash \
6263
tokio-console.bash \
6364
udevadm.bash \
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 3rd party completion loader for commands emitting -*- shell-script -*-
2+
# their completion using "$cmd install-completions". For example,
3+
# some Go programs using https://github.com/WillAbides/kongplete do.
4+
#
5+
# This serves as a fallback in case the completion is not installed otherwise.
6+
7+
eval -- "$("$1" install-completions 2>/dev/null)"
8+
9+
# ex: filetype=sh

0 commit comments

Comments
 (0)