bash-completion: do not specify bin absolute path to call bash_autocomplete CLI command

This commit is contained in:
Benjamin Renard 2020-06-23 18:24:44 +02:00
parent da2c90a337
commit 3c27fa92ca

View file

@ -6,7 +6,7 @@ _ldapsaisie()
_get_comp_words_by_ref -n "=" cur words cword _get_comp_words_by_ref -n "=" cur words cword
# Retreive COMPREPLY using bash_autocomplete ldapsaisie CLI command # Retreive COMPREPLY using bash_autocomplete ldapsaisie CLI command
COMPREPLY=( $(/usr/sbin/ldapsaisie bash_autocomplete ${cword} -- ${words[@]}) ) COMPREPLY=( $(ldapsaisie bash_autocomplete ${cword} -- ${words[@]}) )
# If current word to complete contain '=' and if it's a word-break char # If current word to complete contain '=' and if it's a word-break char
# Note: This method was inspired by __ltrim_colon_completions helper. # Note: This method was inspired by __ltrim_colon_completions helper.