-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_dmenu_edit_conf_completions
31 lines (30 loc) · 1.11 KB
/
_dmenu_edit_conf_completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
##@Version : 020520211122-git
# @Author : Jason Hempstead
# @Contact : jason@casjaysdev.pro
# @License : WTFPL
# @ReadME : dmenu_edit_conf --help
# @Copyright : Copyright: (c) 2021 Jason Hempstead, CasjaysDev
# @Created : Friday, Feb 05, 2021 11:22 EST
# @File : dmenu_edit_conf
# @Description : autocomplete for dmenu_edit_conf
# @TODO :
# @Other :
# @Resource :
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
_dmenu_edit_conf() {
local CASJAYSDEVDIR="${CASJAYSDEVDIR:-/usr/local/share/CasjaysDev/scripts}"
local cur prev words cword
local ARRAY="$(<$CASJAYSDEVDIR/helpers/dmenu_edit_conf/array)"
_init_completion || return
case $prev in
*)
COMPREPLY=($(compgen -W '${ARRAY}' -- "$cur"))
return
;;
esac
} &&
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# enable completions
complete -F _dmenu_edit_conf -o default dmenu_edit_conf