mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 05:13:25 -07:00
Updated msys2 to msys2-base-x86_64-20200903
This commit is contained in:
parent
5bc8dbdc75
commit
2307d54cb1
18501 changed files with 1684082 additions and 720361 deletions
|
@ -7,7 +7,7 @@ _update_rc_d()
|
|||
local cur prev words cword
|
||||
_init_completion || return
|
||||
|
||||
local sysvdir services options valid_options
|
||||
local sysvdir services options
|
||||
|
||||
[[ -d /etc/rc.d/init.d ]] && sysvdir=/etc/rc.d/init.d \
|
||||
|| sysvdir=/etc/init.d
|
||||
|
@ -17,15 +17,10 @@ _update_rc_d()
|
|||
options=( -f -n )
|
||||
|
||||
if [[ $cword -eq 1 || "$prev" == -* ]]; then
|
||||
valid_options=( $( \
|
||||
tr " " "\n" <<<"${words[@]} ${options[@]}" \
|
||||
| command sed -ne "/$( command sed "s/ /\\|/g" <<<"${options[@]}" )/p" \
|
||||
| sort | uniq -u \
|
||||
) )
|
||||
COMPREPLY=( $( compgen -W '${options[@]} ${services[@]}' \
|
||||
-X '$( tr " " "|" <<<${words[@]} )' -- "$cur" ) )
|
||||
elif [[ "$prev" == ?($( tr " " "|" <<<${services[@]} )) ]]; then
|
||||
COMPREPLY=( $( compgen -W 'remove defaults start stop' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '${options[@]} ${services[@]}' \
|
||||
-X '$(tr " " "|" <<<${words[@]})' -- "$cur") )
|
||||
elif [[ "$prev" == ?($(tr " " "|" <<<"${services[*]}")) ]]; then
|
||||
COMPREPLY=( $(compgen -W 'remove defaults start stop' -- "$cur") )
|
||||
elif [[ "$prev" == defaults && "$cur" == [0-9] ]]; then
|
||||
COMPREPLY=( 0 1 2 3 4 5 6 7 8 9 )
|
||||
elif [[ "$prev" == defaults && "$cur" == [sk]?([0-9]) ]]; then
|
||||
|
@ -53,7 +48,7 @@ _update_rc_d()
|
|||
COMPREPLY=()
|
||||
fi
|
||||
elif [[ "$prev" == "." ]]; then
|
||||
COMPREPLY=( $( compgen -W "start stop" -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W "start stop" -- "$cur") )
|
||||
else
|
||||
COMPREPLY=()
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue