This is an automated email from the git hooks/post-receive script. scop-guest pushed a commit to branch master in repository bash-completion.
commit 39acdb21e89f89c207089da4c061c193d5d8af84 Author: Nevo Hed <nhed-debianor...@bsoftworks.com> Date: Mon Feb 8 16:38:32 2016 +0200 minicom: Recognize user ~/.minirc.* as config files minicom can be started with certain flag and an optional config CFGNAME where CFGNAME matches a minirc.CFGNAME in a system dir or a .minirc.CFGNAME in users home dir. The current implementation only checks system paths, the attached patch removes the exclusivity of any of the possible directories and returns the config names from system or home directory. --- completions/minicom | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/completions/minicom b/completions/minicom index d168ce4..2f1db26 100644 --- a/completions/minicom +++ b/completions/minicom @@ -28,15 +28,11 @@ _minicom() -T -7 -8' -- "$cur" ) ) return 0 else - local confdir - [[ -n $( command ls /etc/minirc.* 2>/dev/null ) ]] && confdir=/etc - [[ -n $( command ls /etc/minicom/minirc.* 2>/dev/null ) ]] \ - && confdir=/etc/minicom - if [[ -n $confdir ]]; then - COMPREPLY=( $( compgen -W '$( printf "%s\n" $confdir/minirc.* | \ - sed -e "s|$confdir/minirc.||")' -- "$cur" ) ) - return 0 - fi + COMPREPLY=( + $( command ls /etc/minirc.* /etc/minicom/minirc.* ~/.minirc.* \ + 2>/dev/null | sed 's|^.*minirc\.||' | \ + grep "^${cur}" ) ) + [[ $COMPREPLY ]] && return fi } && complete -F _minicom -o default minicom -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git _______________________________________________ Bash-completion-commits mailing list Bash-completion-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits