From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14995 invoked from network); 10 Dec 2022 20:32:12 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Dec 2022 20:32:12 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670704332; b=f/xi1CctzrU8r1w+Ls8MM/uY/MeFDTW/AD0knK0q5Mn76z8Z6CSOFnR45F2KiUPVbhhiNRIGQ5 URGVVvIsUNfwzGdiBurskxPgwSKQUU6+ANHmOjGVe9RUEXPT7X1A88Qlffj8KVQ0ZehywC6hgS /YGHBYag7yfEUkMnAO2CJzybwF3XwEZYlElPKJaTYnlDyr5S3W/6ZboeLYA2azQFrVtU99lNZn Xdd2QGAuh+s5E1e3JIbuybDmUNWFGms9Oa+30+CbP+eliwlRA2L5295iZF17SYpy/uar5W+5GI 2YUte1Xrb5iAiTUJGoOrgAGvpJfbe5+NnehUSGgEx5G/ng==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f177.google.com) smtp.remote-ip=209.85.219.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1670704332; bh=TyPMXR+n3G7oAt0q3A1U6vlUGrqkp59oas3G6q0zq8M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=OHsgP5Pj7H+emxwYbit2tnM8mbbx/z0TzERPu75Kvo5exIfIV5acom8NGIAUUqsRy2x59SboAd wKN1Hj0b0JFek6HzA/xOdBneocgFd542Z7VD3ry3Phsv57VRWZ0u75To9W2GiqfU/6Cm0N+KIZ O6KKKcZVAyjQoxPRRg9HUDHHxDEfMioVnMxyk+rKyMCI336UdJDu74x+j3mZ//PJnFPI+OdFoX VWgtOmLnEd/V5i4qmOzS1f3U4CusdUy+Uj94lA3vMj7rhsW3A2/Q/CJ/qIE4/8f3Uw9C6ONG3C JPZlB/VTEE5d1BHS/1QQTIUdMvfoYnNRjah5GXzkeRGe4Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=w6jaShdV/dXYELQ1W4N7e9xIccNR6SAD4xNagvK/sog=; b=qqBcjHvaUduAlY4e/q7ws6MCDb 0vRpG6XG2DV/05eeXD5/u+Jhrqvw9piVrvL5dzgUXNBoLDiqDKug2YQCngKZm5Mu/Sq/JKlk7eA1/ cDwotcNM8+uNwUW8nObPEp/e5PYHJbPI8GqD4MdPS840QLemR7jnkB3Xr21uTZZuEphCA5FztDj+k xihoPCopRt4/5ZsQBRUXsAxxWzrob9IdQCupv393fe8iO1BszfmG+457ApgwzL9qBxZ6JJ/L3dkQf pIleHp5z3g0M+z3KJOsznlAp7zrYijEIjnDlSfJJhyJeZkfGDfF+/sUx+8fF5b76mxX5HE7TLS4CC glweJyyA==; Received: by zero.zsh.org with local id 1p46W4-000Flz-0d; Sat, 10 Dec 2022 20:32:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f177.google.com) smtp.remote-ip=209.85.219.177; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yb1-f177.google.com ([209.85.219.177]:45936) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1p46VS-000FTd-9J; Sat, 10 Dec 2022 20:31:34 +0000 Received: by mail-yb1-f177.google.com with SMTP id y135so9428915yby.12 for ; Sat, 10 Dec 2022 12:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w6jaShdV/dXYELQ1W4N7e9xIccNR6SAD4xNagvK/sog=; b=dacF4KwhgNaTIU07wujbaGpOOhUyld4qfR21LdMEH9yHJRoxNYqSU+yKCkcyzvRPSO DjgyjundAveWOpqlF7kyifAdKOLVxjjJcCiquwY6bkOYJgxAYxAIhB4XKntJSc6AFakV ztzA0iE0nztlfsAfYI6FFM3cWlgRE4ZbgJ6++8tqSM7lPZDfEODaUhnQ9UP6O/ye/Ly/ wGDBcCmtS3MZX33u4zfH0U+NoOFH8ptmQo7SOu/c1WSAN83/LJPIjzPWf2mrtcmLHG5Q VM3sUpV91XsdcubnVJRcfB63PPxQ/vHYtWd0mtHnkbj4msMnMaW3ql+2+z8eD6tec5tI zk2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w6jaShdV/dXYELQ1W4N7e9xIccNR6SAD4xNagvK/sog=; b=ApvAYnQogUtrK30i1T9/0QINjR1AcsUn29IBbcwTkYazf0XzD01Da3ITESrPPA91td UDGz6t+UyPSSzTYSiN/MDlB+s+Vy4VMrdPphAU/RXmt+vUA/shIqZn28tUZ0iI26u95g 2jwm4ed2mfRnIFKKpKxVbgIUvlIUfQU35woRfVvUcMgU60xVaMnWAqoaA04x4QFESgS3 MKhtZ6JJw9BZQgKCXG7Exxok4v3sYX0hrKgMNgT7KcjbLQU6+rcTQyk2zB2btHeoEdwt sM0dRjU4/9lI5CxGndCmrK/WIpc6RY1Jc3W+m5pRJ0Hg0zBsQ9z7ZWGAxJ9QBQXtEypg ljyQ== X-Gm-Message-State: ANoB5pk+8eY56LwACFfnnqCfTLq5ItSZLlf8MMkgAjf/HjjBR+iT1VWJ BUvBQNjKksUvSXWgSk+sXnOflBDu5AuYcaS8fj4= X-Google-Smtp-Source: AA0mqf7Di+Dx3INiOeowqLojP2dAKQzG9hW/6WwzxNcs0VqKEed+47KZRnEJ7GLZJhWxyDz8DSKak7SDYpl9EVrlUAM= X-Received: by 2002:a25:9ac7:0:b0:708:c3d2:a2bd with SMTP id t7-20020a259ac7000000b00708c3d2a2bdmr7442875ybo.138.1670704292778; Sat, 10 Dec 2022 12:31:32 -0800 (PST) MIME-Version: 1.0 References: <20221209010650.sq2cp5a2op2mrpat@pine.grzadka> <20221210200602.ayy4d3yzd6vz52qc@pine.grzadka> In-Reply-To: <20221210200602.ayy4d3yzd6vz52qc@pine.grzadka> From: Roman Perepelitsa Date: Sat, 10 Dec 2022 21:31:20 +0100 Message-ID: Subject: Re: zsh does not offer ssh host from config To: Jan Palus Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 51179 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, Dec 10, 2022 at 9:06 PM Jan Palus wrote: > > On 10.12.2022 13:08, Roman Perepelitsa wrote: > > > > If you only ever ssh to hosts listed in the ssh config, you can > > configure ssh completions to respect that: > > > > zstyle ':completion:*:(ssh|scp):*:hosts' hosts > > > > Listing all remote machines in the ssh config has other advantages > > besides making completions more predictable. > > > It's nice to have a possibility to customize behavior but I'd say more > sensible default would be to offer both. Oh, I'm not arguing in favor of the current implementation. I just thought it might be useful to mention the setup I've made for myself that works decently well. > In my case it's much more practical to ie use pattern in ssh config for > all the test envs instead of listing plenty of them explicitly. I used to do that but then switched to my current setup where the ssh config contains all remote machines (I generate it with a script). I really like the ability to list all machines with a TAB. That said, I can imagine environments where this kind of setup isn't possible. Roman.