forked from MiXXiM/miscellaneous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
completions
28 lines (24 loc) · 974 Bytes
/
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
#!/usr/bin/env bash
#cito M:644 O:0 G:0 T:/usr/share/bash-completion/completions/lmc-darklight
#------------------------------------------------------------------------------
# Project Name - Extra/source/lmc-darklight/completions
# Started On - Wed 12 Feb 18:58:13 GMT 2020
# Last Change - Fri 25 Feb 03:21:13 GMT 2022
# Author E-Mail - [email protected]
# Author GitHub - https://github.com/terminalforlife
#------------------------------------------------------------------------------
# This is the bash completion script for LMC-DarkLight.
#------------------------------------------------------------------------------
_lmc_darklight() {
local Option Arg Args
while read; do
if [[ $REPLY =~ ^[[:space:]]{2} ]]; then
Option=${REPLY%% - *}
for Arg in ${Option//,/}; {
Args+="${Arg##[^-]*} "
}
fi
done <<< "$(lmc-darklight -h)"
COMPREPLY=(`compgen -W "$Args" -- "$2"`)
}
complete -F _lmc_darklight lmc-darklight