X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=0716164a6a8c7868cc653fb63078d98d21f8474e;hb=eb5f508e7054bda6e240f2738290f380890d0a43;hp=beeba29b6d73e15aebfa85ee38c874dcc230fd5f;hpb=c9a74e732b7522129eda451691bbb5ad071c2cb2;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index beeba29..0716164 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -198,6 +198,10 @@ isopenbsd(){ [[ $GRML_OSTYPE == "OpenBSD" ]] } +issolaris(){ + [[ $GRML_OSTYPE == "SunOS" ]] +} + #f1# are we running within an utf environment? isutfenv() { case "$LANG $CHARSET $LANGUAGE" in @@ -768,7 +772,7 @@ grmlcomp() { [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() [[ -r /etc/hosts ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$( 0 )); then while (( $# > 0 )); do - if islinux || isfreebsd; then + if islinux || isfreebsd; then cp $verbose -a "${1%/}" "${1%/}_$current_date" else cp $verbose -pR "${1%/}" "${1%/}_$current_date"