From f21948d6c56ae0bfbba90f84bf144de33630f7de Mon Sep 17 00:00:00 2001 From: ncanceill Date: Sun, 2 Feb 2014 13:31:02 +0100 Subject: [PATCH 1/2] remove brackets from URLs when parsing user SSH known hosts, maybe also required for system known hosts, partially fixes #2414 --- lib/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/completion.zsh b/lib/completion.zsh index e0cdcf626..1336fd77f 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -33,7 +33,7 @@ cdpath=(.) # use /etc/hosts and known_hosts for hostname completion [ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$( Date: Thu, 13 Feb 2014 11:08:55 +0100 Subject: [PATCH 2/2] also trim the port number in address:port form --- lib/completion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/completion.zsh b/lib/completion.zsh index 1336fd77f..925c4491a 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -33,7 +33,7 @@ cdpath=(.) # use /etc/hosts and known_hosts for hostname completion [ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(