about summary refs log tree commit diff
path: root/Completion/Base/_math
blob: 90a2c5f7b861e5cbbecd86f4704042266d091b4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef -math-

if [[ "$PREFIX" = *[^a-zA-Z0-9_]* ]]; then
  IPREFIX="$IPREFIX${PREFIX%%[a-zA-Z0-9_]#}"
  PREFIX="${PREFIX##*[^a-zA-Z0-9_]}"
fi
if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then
  ISUFFIX="${SUFFIX##[a-zA-Z0-9_]#}$ISUFFIX"
  SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}"
fi

compgen -v
#compdef -math-

IPREFIX="$IPREFIX${PREFIX%[a-zA-Z0-9_]*}"
PREFIX="${PREFIX##*[^a-zA-Z0-9_]}"

compgen -v