fixed scp completion

This commit is contained in:
eeleater 2025-04-03 07:19:10 +02:00
parent f87806f09b
commit 4cf0731971

View file

@ -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