From 6cdcde51cf28b8c448e41a14ed1b0108fadbf018 Mon Sep 17 00:00:00 2001 From: kat witch Date: Mon, 30 Aug 2021 02:05:29 +0100 Subject: [PATCH] Remove broken ass known-hosts autocomplete --- config/users/kat/base/shell.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/users/kat/base/shell.nix b/config/users/kat/base/shell.nix index d3531e92..6fd2b113 100644 --- a/config/users/kat/base/shell.nix +++ b/config/users/kat/base/shell.nix @@ -63,9 +63,6 @@ in if [[ -r ~/.ssh/config ]]; then h=($h ''${''${''${(@M)''${(f)"$(cat ~/.ssh/config)"}:#Host *}#Host }:#*[*?]*}) fi - if [[ -r ~/.ssh/known_hosts ]]; then - h=($h ''${''${''${(f)"$(cat ~/.ssh/known_hosts{,2} || true)"}%%\ *}%%,*}) 2>/dev/null - fi if [[ $#h -gt 0 ]]; then zstyle ':completion:*:ssh:*' hosts $h zstyle ':completion:*:slogin:*' hosts $h