diff options
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/completion.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index d3fb246c..ecdffab8 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -43,6 +43,9 @@ complete -A variable declare export readonly typeset # Both functions and variables complete -A function -A variable unset +# The `mapfile` builtin in Bash >= 4.0 +((BASH_VERSINFO[0] >= 4)) && complete -A arrayvar mapfile + # If we have dynamic completion loading (Bash>=4.0), use it if ((BASH_VERSINFO[0] >= 4)) ; then |