File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
13_ugrd_autocomplete () {
24 local cur prev args
35 cur=" ${COMP_WORDS[COMP_CWORD]} "
@@ -10,19 +12,18 @@ _ugrd_autocomplete() {
1012
1113 case " ${prev} " in
1214 --config|-c)
13- COMPREPLY=( "$ (compgen -f -- "${cur}")" )
15+ mapfile -t COMPREPLY < < ( compgen -f -- " ${cur} " )
1416 return 0
1517 ;;
1618 --kernel-version|--kver)
17- COMPREPLY=( "$ (compgen -W "$(ls /lib/modules)" -- "${cur}")" )
19+ mapfile -t COMPREPLY < < ( compgen -W " $( ls /lib/modules) " -- " ${cur} " )
1820 return 0
1921 ;;
2022 * )
21- COMPREPLY=( "$ (compgen -W "${args}" -- "${cur}")" )
23+ mapfile -t COMPREPLY < < ( compgen -W " ${args} " -- " ${cur} " )
2224 return 0
2325 ;;
2426 esac
25-
2627}
2728
2829complete -F _ugrd_autocomplete ugrd
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " ugrd"
7- version = " 1.3.2 "
7+ version = " 1.3.3 "
88authors = [
99 {
name =
" Desultory" ,
email =
" [email protected] " },
1010]
You can’t perform that action at this time.
0 commit comments