Fix _tilde with new _compopt_o_filenames

This commit is contained in:
Freddy Vulto 2010-11-03 19:55:38 +01:00
parent 7a174c0e1f
commit dfb84064a4

View File

@ -789,6 +789,7 @@ _tilde() {
local result=0
# Does $1 start with tilde (~) and doesn't contain slash (/)?
if [[ ${1:0:1} == "~" && $1 == ${1//\/} ]]; then
_compopt_o_filenames
# Try generate username completions
COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
result=${#COMPREPLY[@]}