From 4cf0731971e0681f1b989d89ca730f373c683cc7 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 3 Apr 2025 07:19:10 +0200 Subject: [PATCH] fixed scp completion --- dot_config/zsh/dot_zshrc.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_config/zsh/dot_zshrc.tmpl b/dot_config/zsh/dot_zshrc.tmpl index df734b6..efd7fc4 100644 --- a/dot_config/zsh/dot_zshrc.tmpl +++ b/dot_config/zsh/dot_zshrc.tmpl @@ -38,6 +38,10 @@ smartcache eval direnv hook zsh eval "$(mise activate zsh)" {{- end }} +{{- if eq .chezmoi.osRelease.id "endeavouros" }} +zstyle ':completion:*:(scp|sftp|rsh|rsync):*' hosts ${=${${(f)"$(cat ~/.ssh/known_hosts/{default,priv,work/*}(|2)(N) /dev/null)"}%%[# ]*}//,/ } +{{- end }} + # source files source "$ZDOTDIR"/files/aliases.zsh