/bash_completion_lib/complete-nohostcomplete/talk
http://github.com/brinkman83/bashrc · #! · 22 lines · 14 code · 8 blank · 0 comment · 0 complexity · 1edd76c3cb82e5283a40eae369271971 MD5 · raw file
- # This function provides simple user@host completion
- comp_include _get_cword _known_hosts
- _user_at_host() {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- if [[ $cur == *@* ]]; then
- _known_hosts
- else
- COMPREPLY=( $( compgen -u -- "$cur" ) )
- fi
- return 0
- }
- _user_at_host