16 lines
		
	
	
		
			441 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			441 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
 | 
						|
 | 
						|
function __nutools_host_completion() {
 | 
						|
    local cur prev
 | 
						|
    _get_comp_words_by_ref cur prev
 | 
						|
    if [ "$prev" == "-h" -o "$prev" == "-H" ]; then
 | 
						|
        _known_hosts_real "$cur"
 | 
						|
    fi
 | 
						|
}
 | 
						|
complete -F __nutools_host_completion -o default uinst ruinst runs rruns
 | 
						|
 | 
						|
if __bash_completion_module_enabled ssh; then
 | 
						|
    shopt -u hostcomplete
 | 
						|
    complete -F _ssh ussh cssh
 | 
						|
fi
 |