[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 8358f35def9107515353683838f234081ba7d1c3

Freddy Vulto fvulto at gmail.com
Thu Jun 18 19:53:05 UTC 2009


The following commit has been merged in the master branch:
commit 8358f35def9107515353683838f234081ba7d1c3
Merge: 127eaafb540433ed55089691dd3b9e001c92e5b9 d9cce3856784dae5ef57474b39b3472567473544
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Thu Jun 18 21:52:32 2009 +0200

    Merge branch 'master' of git+ssh://fvu-guest@git.debian.org/git/bash-completion/bash-completion

diff --combined bash_completion
index 845a099,20e3b49..0b40247
--- a/bash_completion
+++ b/bash_completion
@@@ -1084,8 -1084,6 +1084,8 @@@ _known_hosts_real(
  			p) prefix=$OPTARG ;;
  		esac
  	done
 +	[ $# -ge $OPTIND ] && echo "error: $FUNCNAME("$@"): unprocessed arguments:"\
 +	    $(while [ $# -gt 0 ]; do echo ${!OPTIND}; shift; done)
  
  	[[ $cur == *@* ]] && user=${cur%@*}@ && cur=${cur#*@}
  	kh=()
@@@ -1194,6 -1192,13 +1194,13 @@@
  		COMPREPLY=( "${COMPREPLY[@]}" $hosts )
  	    fi
  
+         # Add hosts reported by avahi, if it's available
+         if type avahi-browse >&/dev/null; then
+         COMPREPLY=( "${COMPREPLY[@]}" $(
+             compgen -W "$( avahi-browse -kcpr _workstation._tcp | \
+                            grep ^= | cut -d\; -f7 | sort -u )" -- $cur ) )
+         fi
+ 
  	    # Now add results of normal hostname completion
  	    COMPREPLY=( "${COMPREPLY[@]}" $( compgen -A hostname -- $cur ) )
  

-- 
bash-completion



More information about the Bash-completion-commits mailing list