about summary refs log tree commit diff
path: root/Functions/Completion/__configure
blob: a4d00e0f2296ca361568186b4d40ae38a59655b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#function configure
if [[ $PREFIX = *=* ]]; then
  # Complete filenames after e.g. --prefix=
  IPREFIX=${PREFIX%%=*}=
  PREFIX=${PREFIX#*=}
  complist -f
else
  # Generate a list of options from configure --help
  complist -s '$($COMMAND --help |
  sed -n -e '\''s/^ *\(--[-a-z0-9]*\)[    =,].*$/\1/p'\'')'
fi