Skip to content

Commit 25da9ac

Browse files
committed
Generic way of getting the path to bash_completion
1 parent f956526 commit 25da9ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/get-options.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22

3-
source /usr/share/bash-completion/bash_completion
3+
DATADIR="$(pkg-config --variable=datadir bash-completion)"
4+
5+
source "$DATADIR/bash-completion/bash_completion"
46

57
COMP_LINE="$*"
68
COMP_WORDS=("$@")

0 commit comments

Comments
 (0)