X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=4ad12c6b117843180aa2140b189d779af11db080;hb=1049e383c183bce753a1f11fdc05ddd0a3f1942e;hp=9c2a04691536364866baad638ced2a2b116227b9;hpb=1df56b48cd8e1884f2d3cf98a1e98e379c5a843d;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 9c2a046..4ad12c6 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -786,7 +786,7 @@ grmlcomp() { # use generic completion system for programs not yet defined; (_gnu_generic works # with commands that provide a --help option with "standard" gnu-like output.) for compcom in cp deborphan df feh fetchipac gpasswd head hnb ipacsum mv \ - pal stow tail uname ; do + pal stow uname ; do [[ -z ${_comps[$compcom]} ]] && compdef _gnu_generic ${compcom} done; unset compcom @@ -2589,7 +2589,7 @@ if [[ -r /etc/debian_version ]] ; then # get a root shell as normal user in live-cd mode: if isgrmlcd && [[ $UID -ne 0 ]] ; then alias su="sudo su" - fi + fi #a1# Take a look at the syslog: \kbd{\$PAGER /var/log/syslog} salias llog="$PAGER /var/log/syslog" # take a look at the syslog @@ -3060,9 +3060,9 @@ EOT shift "$((OPTIND-1))" if (( keep > 0 )); then while (( $# > 0 )); do - if islinux || isfreebsd; then + if islinux || isfreebsd; then cp $verbose -a "${1%/}" "${1%/}_$current_date" - else; + else cp $verbose -pR "${1%/}" "${1%/}_$current_date" fi (( result += $? ))