Skip to content

Commit

Permalink
_user_at_host: Set nospace only when completing username part
Browse files Browse the repository at this point in the history
References #123
  • Loading branch information
scop committed May 9, 2017
1 parent f9f10a3 commit a4c6763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -1433,9 +1433,10 @@ _user_at_host()
_known_hosts_real "$cur"
else
COMPREPLY=( $( compgen -u -S @ -- "$cur" ) )
compopt -o nospace
fi
}
shopt -u hostcomplete && complete -F _user_at_host -o nospace talk ytalk finger
shopt -u hostcomplete && complete -F _user_at_host talk ytalk finger

# NOTE: Using this function as a helper function is deprecated. Use
# `_known_hosts_real' instead.
Expand Down

0 comments on commit a4c6763

Please sign in to comment.