aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/completion.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-01 14:14:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-01 14:14:50 +1200
commit64d4dbcce814d8f4fca9c1acfef21c7bd5b89c53 (patch)
treeacd927e56a68fb261f98eb7b2b761e993bcdac13 /bash/bashrc.d/completion.bash
parentRefactor welcome.sh (diff)
downloaddotfiles-64d4dbcce814d8f4fca9c1acfef21c7bd5b89c53.tar.gz
dotfiles-64d4dbcce814d8f4fca9c1acfef21c7bd5b89c53.zip
Correct completions for declare, typeset etc
All of them can accept function names
Diffstat (limited to 'bash/bashrc.d/completion.bash')
-rw-r--r--bash/bashrc.d/completion.bash5
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash
index ecdffab8..0ddb1b55 100644
--- a/bash/bashrc.d/completion.bash
+++ b/bash/bashrc.d/completion.bash
@@ -37,11 +37,8 @@ complete -A shopt shopt
# Signal names
complete -A signal trap
-# Variables
-complete -A variable declare export readonly typeset
-
# Both functions and variables
-complete -A function -A variable unset
+complete -A function -A variable declare export readonly typeset unset
# The `mapfile` builtin in Bash >= 4.0
((BASH_VERSINFO[0] >= 4)) && complete -A arrayvar mapfile