diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-21 16:57:08 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-21 16:57:08 +1300 |
commit | 843943fbb7178e6d15230c1b6d867f26ab709d0c (patch) | |
tree | 420eeb94595d58966464180abddebf7103e12c76 /bash/bashrc.d/completion.bash | |
parent | Do tell me about mail if I'm likely to care (diff) | |
download | dotfiles-843943fbb7178e6d15230c1b6d867f26ab709d0c.tar.gz dotfiles-843943fbb7178e6d15230c1b6d867f26ab709d0c.zip |
Refine completions with builtin compspecs
Diffstat (limited to 'bash/bashrc.d/completion.bash')
-rw-r--r-- | bash/bashrc.d/completion.bash | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index a8a74671..ceeaaaae 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -1,21 +1,41 @@ -# builtin with builtins -complete -b builtin +# Various easy completions -# cd/pushd with directories -complete -d cd pushd +# Alias names +complete -A alias unalias -# command/hash/type with commands -complete -c command hash type +# Bash builtins +complete -A builtin builtin -# help with topics +# Bash options +complete -A setopt set + +# Commands +complete -A command alias command complete coproc exec hash type + +# Directories +complete -A directory cd pushd mkdir rmdir + +# Functions +complete -A function function + +# Help topics complete -A helptopic help -# set with options -complete -A setopt set +# Jobspecs +complete -A job bg fg disown jobs + +# Readline bindings +complete -A binding bind -# shopt with shell options +# Shell options complete -A shopt shopt -# unset with shell variables and functions -complete -v -A function unset +# Signal names +complete -A signal trap + +# Variables +complete -A variable declare export readonly typeset + +# Both functions and variables +complete -A function -A variable unset |