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
|
@ -8,9 +8,9 @@ _cpan2dist()
|
|||
case $prev in
|
||||
--format)
|
||||
# should remove ":" from COMP_WORDBREAKS, but doesn't work (?)
|
||||
COMPREPLY=( $( compgen -W '$(perl -MCPANPLUS::Dist -e \
|
||||
COMPREPLY=( $(compgen -W '$(perl -MCPANPLUS::Dist -e \
|
||||
"print map { \"\$_\n\" } CPANPLUS::Dist->dist_types")' \
|
||||
-- "$cur" ) )
|
||||
-- "$cur") )
|
||||
return
|
||||
;;
|
||||
--banlist|--ignorelist|--modulelist|--logfile)
|
||||
|
@ -20,16 +20,16 @@ _cpan2dist()
|
|||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
|
||||
else
|
||||
local cpandirs=( "$HOME/.cpanplus/" "$HOME/.cpan/source/modules/" )
|
||||
local packagelist
|
||||
for dir in ${cpandirs[@]}; do
|
||||
for dir in "${cpandirs[@]}"; do
|
||||
[[ -d "$dir" && -r "$dir/02packages.details.txt.gz" ]] && \
|
||||
packagelist="$dir/02packages.details.txt.gz"
|
||||
done
|
||||
[[ $packagelist ]] && COMPREPLY=( $( zgrep "^${cur//-/::}" \
|
||||
$packagelist 2>/dev/null | awk '{print $1}' | command sed -e 's/::/-/g' ) )
|
||||
[[ $packagelist ]] && COMPREPLY=( $(zgrep "^${cur//-/::}" \
|
||||
$packagelist 2>/dev/null | awk '{print $1}' | command sed -e 's/::/-/g') )
|
||||
fi
|
||||
} &&
|
||||
complete -F _cpan2dist -o default cpan2dist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue