diff --git a/src/bash/bashrc b/src/bash/bashrc index 4b5e1a2..174173a 100755 --- a/src/bash/bashrc +++ b/src/bash/bashrc @@ -8,6 +8,7 @@ shopt -s checkwinsize # check window size on script exit shopt -s cdable_vars # enable change directory to a variable value shopt -s extglob # enable extended glob patterns shopt -s globstar # enable glob ** expansion +shopt -s nullglob # enable nullglob # get bash completion dir export BASH_COMPLETION_DIR="$LOCAL_PREFIX/etc/bash_completion.d" diff --git a/src/bash/scripts/eval/set-completion b/src/bash/scripts/eval/set-completion index 2924baa..1b6b224 100755 --- a/src/bash/scripts/eval/set-completion +++ b/src/bash/scripts/eval/set-completion @@ -50,7 +50,7 @@ if [ ! -d "$AM_PROMPT/bash/completions" ]; then fi # iterate over each completion -for AM_COMPLETION in $AM_PROMPT/bash/completions/* 2>/dev/null; do +for AM_COMPLETION in $AM_PROMPT/bash/completions/*; do # source the completion . "$AM_COMPLETION" diff --git a/src/zsh/scripts/eval/set-completion b/src/zsh/scripts/eval/set-completion index 4fc25ce..f6e26cb 100755 --- a/src/zsh/scripts/eval/set-completion +++ b/src/zsh/scripts/eval/set-completion @@ -38,7 +38,7 @@ if [ ! -d "$AM_PROMPT/zsh/completions" ]; then fi # iterate over each completion -for AM_COMPLETION in $AM_PROMPT/zsh/completions/* 2>/dev/null; do +for AM_COMPLETION in $AM_PROMPT/zsh/completions/*; do # source the completion . "$AM_COMPLETION" diff --git a/src/zsh/zshrc b/src/zsh/zshrc index 0097592..aa586d0 100755 --- a/src/zsh/zshrc +++ b/src/zsh/zshrc @@ -17,6 +17,7 @@ fi # shell options setopt cdable_vars setopt inc_append_history +setopt +o nomatch # rebuild completion rm -rf $HOME/.zcompdump