Fix _tilde with new _compopt_o_filenames
This commit is contained in:
parent
7a174c0e1f
commit
dfb84064a4
@ -789,6 +789,7 @@ _tilde() {
|
|||||||
local result=0
|
local result=0
|
||||||
# Does $1 start with tilde (~) and doesn't contain slash (/)?
|
# Does $1 start with tilde (~) and doesn't contain slash (/)?
|
||||||
if [[ ${1:0:1} == "~" && $1 == ${1//\/} ]]; then
|
if [[ ${1:0:1} == "~" && $1 == ${1//\/} ]]; then
|
||||||
|
_compopt_o_filenames
|
||||||
# Try generate username completions
|
# Try generate username completions
|
||||||
COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
|
COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
|
||||||
result=${#COMPREPLY[@]}
|
result=${#COMPREPLY[@]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user