Bug#697370: clusterssh: add autocompletion for defined clusters
On 08/16/2015 11:14 PM, Oliver Meißner wrote: Hello, the following file should do autocompletion in bash for clusterssh-clusters: Hello Oliver, Thank you for the patch. I'll work on getting it into the next upload of clusterssh. Cheers, tony signature.asc Description: OpenPGP digital signature
Bug#697370: clusterssh: add autocompletion for defined clusters
Hello, the following file should do autocompletion in bash for clusterssh-clusters $ cat /etc/bash_completion.d/clusterssh _cssh() { local cur prev base COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} if [[ ${cur} == -* ]]; then opts=$( cssh --help 21 | egrep '\-\-' | awk -F, '{ print $1 }' ) COMPREPLY=( $(compgen -W ${opts} -- ${cur}) ) return 0 else if [ -f $HOME/.clusterssh/clusters ]; then local tags=$( cat $HOME/.clusterssh/clusters | awk '{ print $1 }' ) COMPREPLY=( $(compgen -W ${tags} -- ${cur}) ) fi return 0 fi } complete -F _cssh cssh -- oli...@la-familia-grande.de GnuPG-Fingerprint: 31F8 1667 712C ED9E EDDC 42D2 EC82 8304 92E2 7B15 http://www.la-familia-grande.de/keys/92e27b15.txt pgpjt9guljIdg.pgp Description: Digitale Signatur von OpenPGP
Bug#697370: clusterssh: add autocompletion for defined clusters
Package: clusterssh Version: 4.01.01-4 Severity: wishlist Hello, it would be nice if autocompletion would work for the defined clusters; so that if I have 'cluster1' in .clusterssh/clusters and then I go into the shell and type $ cssh cluTABTAB that would complete to 'cluster1'. Thanks Regards, Sandro -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.7-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages clusterssh depends on: ii libexception-class-perl 1.32-1 ii libtry-tiny-perl 0.11-1 ii libx11-protocol-perl 0.56-4 ii openssh-client 1:6.0p1-3 ii perl 5.14.2-16 ii perl-tk 1:804.030-1 ii xterm278-4 clusterssh recommends no packages. clusterssh suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org