zshrc: removed extra `;'
[grml-etc-core.git] / etc / zsh / zshrc
index 2ab3f85..beeba29 100644 (file)
@@ -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
@@ -3062,7 +3062,7 @@ EOT
         while (( $# > 0 )); do
             if islinux || isfreebsd; then
                 cp $verbose -a "${1%/}" "${1%/}_$current_date"
-            else;
+            else
                 cp $verbose -pR "${1%/}" "${1%/}_$current_date"
             fi
             (( result += $? ))