[Bash-completion-commits] [bash-completion] 01/01: complete on freerdp-specific known hosts list

Guillaume Rousse guillomovitch-guest at alioth.debian.org
Fri Oct 25 11:51:48 UTC 2013


This is an automated email from the git hooks/post-receive script.

guillomovitch-guest pushed a commit to branch master
in repository bash-completion.

commit 1cfbbdd52cafd6b995f7241e2b87a41ed0f7a87a
Author: Guillaume Rousse <guillomovitch at zarb.org>
Date:   Fri Oct 25 13:48:33 2013 +0200

    complete on freerdp-specific known hosts list
    
    This is an RDP client, it is unlikely to be used to connect to any host
    found in a list constituted mainly from SSH servers.
---
 completions/xfreerdp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/completions/xfreerdp b/completions/xfreerdp
index f018844..fda531b 100644
--- a/completions/xfreerdp
+++ b/completions/xfreerdp
@@ -29,7 +29,8 @@ _xfreerdp()
         COMPREPLY=( $( compgen -W '-u -d -s -c -p -n -t -g -a -z -f -x -O -o -k
             --kbd-list -h --plugin --data' -- "$cur" ) )
     else
-        _known_hosts_real "$cur"
+        COMPREPLY=( $( compgen -W "$(awk '{print $1}' ~/.freerdp/known_hosts \
+            2>/dev/null)" -- "$cur" ) )
     fi
 
 } &&

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list