From a3a022d9336c4b879530156379de04c540d4a404 Mon Sep 17 00:00:00 2001 From: Stefan Roos Date: Tue, 5 Nov 2024 14:26:05 +0200 Subject: [PATCH] Fix: Add better separator for hosts to avoid host skipping. --- zsh-ssh.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh-ssh.zsh b/zsh-ssh.zsh index 9d0ce5d..f3b7341 100644 --- a/zsh-ssh.zsh +++ b/zsh-ssh.zsh @@ -44,6 +44,7 @@ _ssh_host_list() { ssh_config=$(_parse_config_file $SSH_CONFIG_FILE) ssh_config=$(echo $ssh_config | command grep -v -E "^\s*#[^_]") + ssh_config=$(echo $ssh_config | command sed "s/^[ \t]*host /@@host /gi") host_list=$(echo $ssh_config | command awk ' function join(array, start, end, sep, result, i) { @@ -81,7 +82,7 @@ _ssh_host_list() { BEGIN { IGNORECASE = 1 FS="\n" - RS="" + RS="@@" host_list = "" }