summaryrefslogtreecommitdiff
path: root/completions/export
diff options
context:
space:
mode:
Diffstat (limited to 'completions/export')
-rw-r--r--completions/export9
1 files changed, 7 insertions, 2 deletions
diff --git a/completions/export b/completions/export
index 42273a9e..31715f9a 100644
--- a/completions/export
+++ b/completions/export
@@ -24,7 +24,12 @@ _export()
break
done
- [[ $cur == *=\$* ]] && { cur=${cur#*=}; _variables; } && return
+ if [[ $cur == *=* ]]; then
+ local ocur=$cur oprev=$prev
+ prev=${cur%%=*} cur=${cur#*=}
+ _variables && return
+ cur=$ocur prev=$oprev
+ fi
case $cur in
*=)
@@ -58,4 +63,4 @@ _export()
} &&
complete -F _export export
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh