From 1f55ea284b7af62630de2883b6d6671a77a39a95 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 2 Dec 2018 12:43:46 +1300 Subject: Throw away chgrp completion I almost never run this as my own user. --- bash/bash_completion.d/chgrp.bash | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 bash/bash_completion.d/chgrp.bash diff --git a/bash/bash_completion.d/chgrp.bash b/bash/bash_completion.d/chgrp.bash deleted file mode 100644 index e63651c5..00000000 --- a/bash/bash_completion.d/chgrp.bash +++ /dev/null @@ -1,14 +0,0 @@ -# Complete group names for first non-option chgrp(1) argument -_chgrp() { - local i - for ((i = 1; i < COMP_CWORD; i++)) ; do - case ${COMP_WORDS[i]} in - -*) ;; - *) return 1 ;; - esac - done - while read -r group ; do - COMPREPLY[${#COMPREPLY[@]}]=$group - done < <(compgen -A group -- "$2") -} -complete -F _chgrp -o bashdefault -o default chgrp -- cgit v1.2.3