From 5ff0a63472a70b92ee079f12f7c4d93e813e88bf Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 14:10:00 +1300 Subject: Bump version number to 0.12.1 --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 12d72a28..b6cce357 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v0.12.0 -Wed Nov 8 00:54:30 UTC 2017 +tejr dotfiles v0.12.1 +Wed Nov 8 01:09:56 UTC 2017 -- cgit v1.2.3 From 9b3d24458de0f67c5d595d05d9c37974f89ecf9d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 14:07:14 +1300 Subject: Quote all Bash completion targets literally This helps ShellCheck understand them as literal strings for linting purposes, but it seems (and highlights) a little bit clearer this way anyway. --- bash/bashrc.d/completion.bash | 91 ++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index eb01dda2..901c55ec 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -16,89 +16,90 @@ fi # Aliases complete -A alias \ - unalias + 'unalias' # Bash builtins complete -A builtin \ - builtin + 'builtin' complete -A enabled \ - disable + 'disable' complete -A disabled \ - enable + 'enable' # Bash options complete -A setopt \ - set + 'set' # Commands complete -A command \ - alias \ - command \ - complete \ - compopt \ - coproc \ - do \ - exec \ - if \ - hash \ - then \ - time \ - type \ - until \ - while + 'alias' \ + 'command' \ + 'complete' \ + 'compopt' \ + 'coproc' \ + 'do' \ + 'exec' \ + 'if' \ + 'hash' \ + 'then' \ + 'time' \ + 'type' \ + 'until' \ + 'while' # Directories complete -A directory \ - cd \ - pushd \ - mkdir \ - rmdir + 'cd' \ + 'pushd' \ + 'mkdir' \ + 'rmdir' # Functions and variables complete -A function \ - function + 'function' complete -A function -A variable \ - declare \ - export \ - local \ - readonly \ - typeset \ - unset + 'declare' \ + 'export' \ + 'local' \ + 'readonly' \ + 'typeset' \ + 'unset' complete -A variable \ - for \ - getopts \ - let \ - read \ - select + 'for' \ + 'getopts' \ + 'let' \ + 'read' \ + 'select' # Help topics -complete -A helptopic help +complete -A helptopic \ + 'help' # Jobspecs complete -P '%' -A job \ - disown \ - fg \ - jobs + 'disown' \ + 'fg' \ + 'jobs' complete -P '%' -A stopped \ - bg + 'bg' # Readline bindings complete -A binding \ - bind + 'bind' # Shell options complete -A shopt \ - shopt + 'shopt' # Signal names complete -A signal \ - trap + 'trap' # The `mapfile` builtin in Bash >= 4.0 if ((BASH_VERSINFO[0] >= 4)) ; then complete -A arrayvar \ - mapfile \ - readarray + 'mapfile' \ + 'readarray' fi # If we have dynamic completion loading (Bash>=4.0), use it -- cgit v1.2.3