From 64d4dbcce814d8f4fca9c1acfef21c7bd5b89c53 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 1 Sep 2016 14:14:50 +1200 Subject: Correct completions for declare, typeset etc All of them can accept function names --- bash/bashrc.d/completion.bash | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3