X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=042ad28c40941437db93d6a1cef1394ea53817be;hb=64aa82a0815d2f3fa6d218db4a71735243f14325;hp=a9fe3ce3981b0938ef6b1ecf9ae0d785ed332c84;hpb=e23adb45813569c30dbb5d7eb029dd3e9437ac5f;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a9fe3ce..042ad28 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Mär 17 20:12:26 CET 2007 [mika] +# Latest change: Sam Apr 14 11:01:58 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -724,6 +724,14 @@ Please use the wodim binary instead' ; return 1" fi fi +# get_tw_cli has been renamed into get_3ware + if [ -x /usr/bin/get_3ware ] ; then + get_tw_cli() { + echo 'Warning: get_tw_cli has been renamed into get_3ware. Invoking get_3ware for you.'>&2 + get_3ware + } + fi + # I hate lacking backward compability, so provide an alternative therefore if ! [ -x /usr/sbin/apache2-ssl-certificate ] ; then function apache2-ssl-certificate(){ @@ -810,20 +818,20 @@ grmlcomp() { } # some people don't like the automatic correction - so run 'NOCOR=1 zsh' to deactivate it if [[ -n "$NOCOR" ]] ; then - zstyle ':completion:*' completer _oldlist _expand _force_rehash _complete + zstyle ':completion:*' completer _oldlist _expand _force_rehash _complete _files setopt nocorrect # do not try to correct the spelling if possible else -# zstyle ':completion:*' completer _oldlist _expand _force_rehash _complete _correct _approximate +# zstyle ':completion:*' completer _oldlist _expand _force_rehash _complete _correct _approximate _files setopt correct # try to correct the spelling if possible zstyle -e ':completion:*' completer ' if [[ $_last_try != "$HISTNO$BUFFER$CURSOR" ]]; then _last_try="$HISTNO$BUFFER$CURSOR" - reply=(_complete _match _prefix) + reply=(_complete _match _prefix _files) else if [[ $words[1] = (rm|mv) ]]; then - reply=(_complete) + reply=(_complete _files) else - reply=(_oldlist _expand _force_rehash _complete _correct _approximate) + reply=(_oldlist _expand _force_rehash _complete _correct _approximate _files) fi fi' fi @@ -974,6 +982,18 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." } compdef _functions reload freload + # list symlinks in detail (more detailed version of 'readlink -f' and 'whence -s') + sll() { + [ -z "$1" ] && printf 'Usage: %s \n' "$0" && return 1 + for i in "$@" ; do + file=$i + while [ -h "$file" ] ; do + ls -l $file + file=$(readlink "$file") + done + done + } + # fast manual access if type -p qma &>/dev/null ; then manzsh() { qma zshall "$1" }