COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
- HOSTS="$(find $COMPLETION_DIR -type f -perm -100 | sed 's@.*/@@')"
+ HOSTS="$(find $COMPLETION_DIR -type f -perm -100 2>/dev/null | sed 's@.*/@@')"
COMPREPLY=($(compgen -W "$HOSTS" -- "$cur"))
return 0
function _pid() {
cur=${COMP_WORDS[COMP_CWORD]}
- PROCESSES="$(find /proc -name '[0-9]*' -maxdepth 1 | sed 's@.*/@@')"
+ PROCESSES="$(find /proc -name '[0-9]*' -maxdepth 1 2>/dev/null | sed 's@.*/@@')"
COMPREPLY=($(compgen -W "$PROCESSES" -- "$cur"))
return 0