Skip to content

Commit

Permalink
zshrc: using <' instead of cat'
Browse files Browse the repository at this point in the history
  • Loading branch information
moviuro authored and ft committed Feb 7, 2015
1 parent 8b1e798 commit 1df56b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/zsh/zshrc
Expand Up @@ -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)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
else
Expand Down

0 comments on commit 1df56b4

Please sign in to comment.