Don't append space after colon in _usergroup (bash 4 only).
This commit is contained in:
parent
8f68300a0d
commit
733811a7b1
@ -697,6 +697,7 @@ _usergroup()
|
|||||||
elif [[ $cur = *:* ]]; then
|
elif [[ $cur = *:* ]]; then
|
||||||
COMPREPLY=( $( compgen -g -- ${cur##*[.:]} ) )
|
COMPREPLY=( $( compgen -g -- ${cur##*[.:]} ) )
|
||||||
else
|
else
|
||||||
|
type compopt &>/dev/null && compopt -o nospace
|
||||||
COMPREPLY=( $( compgen -S : -u -- "$cur" ) )
|
COMPREPLY=( $( compgen -S : -u -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user