Fix _tilde with new _compopt_o_filenames
This commit is contained in:
parent
7a174c0e1f
commit
dfb84064a4
@ -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[@]}
|
||||
|
Loading…
x
Reference in New Issue
Block a user