From: Moviuro Date: Sat, 7 Feb 2015 23:07:40 +0000 (+0100) Subject: zshrc: using `<' instead of `cat' X-Git-Tag: v0.11.0~5 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=1df56b48cd8e1884f2d3cf98a1e98e379c5a843d zshrc: using `<' instead of `cat' --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 2ab3f85..9c2a046 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -764,7 +764,7 @@ grmlcomp() { # host completion if is42 ; then - [[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${${(@M)${(f)"$(cat $HOME/.ssh/config)"}:#Host *}#Host }:#*[*?]*}) || _ssh_config_hosts=() + [[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${${(@M)${(f)"$(<$HOME/.ssh/config)"}:#Host *}#Host }:#*[*?]*}) || _ssh_config_hosts=() [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() [[ -r /etc/hosts ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(