mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-08-20 13:23:27 -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
|
@ -1,21 +1,26 @@
|
|||
# iconv(1) completion -*- shell-script -*-
|
||||
|
||||
_iconv_charsets()
|
||||
{
|
||||
COMPREPLY+=( $(compgen -X ... -W '$(${1:-iconv} -l | \
|
||||
command sed -e "s@/*\$@@" -e "s/[,()]//g")' -- "$cur") )
|
||||
}
|
||||
|
||||
_iconv()
|
||||
{
|
||||
local cur prev words cword split
|
||||
_init_completion -s || return
|
||||
|
||||
case $prev in
|
||||
-'?'|--help|--usage|-V|--version|--unicode-subst|--byte-subst|\
|
||||
--widechar-subst)
|
||||
--help|--usage|--version|--unicode-subst|--byte-subst|\
|
||||
--widechar-subst|-!(-*)[?V])
|
||||
return
|
||||
;;
|
||||
-f|--from-code|-t|--to-code)
|
||||
COMPREPLY=( $( compgen -W '$( iconv -l | \
|
||||
command sed -e "s@/*\$@@" -e "s/[,()]//g" )' -- "$cur" ) )
|
||||
--from-code|--to-code|-!(-*)[ft])
|
||||
_iconv_charsets $1
|
||||
return
|
||||
;;
|
||||
-o|--output)
|
||||
--output|-!(-*)o)
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
|
@ -24,7 +29,7 @@ _iconv()
|
|||
$split && return
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
|
||||
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
||||
fi
|
||||
} &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue