X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=541eced0c0243ce632c5e31dc2556e0806f27292;hb=cf57d776c87d5b8c35cbfb6a3c4a0c04f180d561;hp=ce6969569e1fa20ed93c7f6c2b86b6027fbad2a3;hpb=724508d30c788da653579d44ac3566f27ffed1d6;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ce69695..541eced 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: Sun Aug 03 20:23:34 CEST 2008 [mika] +# Latest change: Wed Aug 06 23:50:53 CEST 2008 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -306,6 +306,19 @@ xcat() { return 0 } +# Remove these functions again, they are of use only in these +# setup files. This should be called at the end of .zshrc. +xunfunction() { + local -a funcs + funcs=(salias xcat xsource xunfunction zrcautoload) + + for func in $funcs ; do + [[ -n ${functions[$func]} ]] \ + && unfunction $func + done + return 0 +} + # autoload wrapper - use this one instead of autoload directly function zrcautoload() { setopt local_options extended_glob @@ -1595,6 +1608,9 @@ grmlcomp() { # zstyle ':completion:*' completer _complete _correct _approximate # zstyle ':completion:*' expand prefix suffix + # complete shell aliases + # zstyle ':completion:*' completer _expand_alias _complete _approximate + # command for process lists, the local web server details and host completion zstyle ':completion:*:urls' local 'www' '/var/www/' 'public_html'