X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=e1515dc34d3bf92a7be62bc2454375370ebb33d0;hb=690a5be664cdfbd914582e4c59672426356250ea;hp=decda2be8ab6bfbbd7788045036b477067966367;hpb=e193e4ae069b867a66038c1e576ec3433e735e8a;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index decda2b..e1515dc 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2052,9 +2052,7 @@ function info_print () { esc_end="$2" shift 2 printf '%s' ${esc_begin} - for item in "$@" ; do - printf '%s ' "$item" - done + printf '%s' "$*" printf '%s' "${esc_end}" } @@ -3079,14 +3077,14 @@ exit 0; ssl_hashes=( sha512 sha256 sha1 md5 ) for sh in ${ssl_hashes}; do - ssl-cert-${sh}() { + eval 'ssl-cert-'${sh}'() { emulate -L zsh if [[ -z $1 ]] ; then - printf 'usage: %s \n' "ssh-cert-${sh}" + printf '\''usage: %s \n'\'' "ssh-cert-'${sh}'" return 1 fi - openssl x509 -noout -fingerprint -${sh} -in $1 - } + openssl x509 -noout -fingerprint -'${sh}' -in $1 + }' done; unset sh ssl-cert-fingerprints() {