Adding new stuff

This commit is contained in:
ViktorBarzin 2017-08-08 00:00:02 +03:00
parent 756244e2c1
commit 78e3a50c53
238 changed files with 34382 additions and 0 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
##
# Script to manually invoke a bash completion function and print the results
# one result per line.
##
. /etc/bash_completion
COMP_FUNC=$1
shift
COMP_WORDS=("${@}")
COMP_CWORD=$((${#COMP_WORDS[@]}-1))
CMD=${COMP_WORDS[0]}
CUR=${COMP_WORDS[$COMP_CWORD]}
PRE=${COMP_WORDS[$(($COMP_CWORD-1))]}
$COMP_FUNC $CMD $CUR $PRE
for reply in ${COMPREPLY[@]} ; do
echo $reply
done