From df2e0d38cf5d22895fff5e3872b9744472979d74 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Sun, 11 Dec 2022 21:13:51 +0100 Subject: remove trailing spaces --- zsh/.zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zsh/.zshrc b/zsh/.zsh/.zshrc index d4e85cf..64730cf 100644 --- a/zsh/.zsh/.zshrc +++ b/zsh/.zsh/.zshrc @@ -511,10 +511,10 @@ zstyle ':completion:*:scp:argument-rest:' group-order hosts files users # hosts # get hosts from ~/.ssh/config, /etc/ssh/ssh_config, ~/.ssh/known_hosts, and /etc/ssh/ssh_known_hosts{,2} zstyle -e ':completion:*:hosts' hosts 'reply=( - ${${(s: :)${(ps:\t:)${${(@M)${(f)"$(cat {~/.ssh/,/etc/ssh/ssh_}config(rN) /dev/null)"}:#Host *}#Host }}}:#*[*?]*} + ${${(s: :)${(ps:\t:)${${(@M)${(f)"$(cat {~/.ssh/,/etc/ssh/ssh_}config(rN) /dev/null)"}:#Host *}#Host }}}:#*[*?]*} ${${${${(f)"$(cat {~/.ssh/,/etc/ssh/ssh_}known_hosts{,2}(rN) /dev/null)"}:#[\|]*}%%\ *}%%,*} )' - + # List folders AND files when autocompleting with cd. I like this because it # let's me use cd as a kind of ls-tool. From https://superuser.com/a/392246 compdef _path_files cd -- cgit v1.2.3