X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c764991edd47c834896fbea0f06fb6f068a4bd3d;hb=0e8f489f9664279e8d43548896c04f8db365da35;hp=8c77a826aeb6ee00beaecb90bd4857027947e053;hpb=aaebb85b04148aafcad855c310254b0568ddad72;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 8c77a82..c764991 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 Feb 24 19:06:28 CET 2007 [mika] +# Latest change: Mon Feb 26 18:52:32 CET 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -139,6 +139,13 @@ fi bindkey '\e[8~' end-of-line # end #fi +# insert unicode character +# usage example: 'ctrl-x i' 00A7 'ctrl-x i' will give you an ยง +# See for example http://unicode.org/charts/ for unicode characters code + autoload insert-unicode-char + zle -N insert-unicode-char + bindkey '^Xi' insert-unicode-char + # bindkey '\eq' push-line-or-edit # }}} @@ -237,9 +244,7 @@ fi autoload history-search-end # we don't want to quote/espace URLs on our own... - # avoid 'url-quote-magic: function definition file not found' on some older boxes - if [ -f "/usr/share/zsh/$ZSH_VERSION/functions/Zle/url-quote-magic" ] && \ - autoload -U url-quote-magic && zle -N self-insert url-quote-magic ; then + if autoload -U url-quote-magic ; then zle -N self-insert url-quote-magic else print 'Notice: no url-quote-magic available :(' @@ -324,8 +329,7 @@ fi # }}} # {{{ set some important options - # umask 022 - umask 002 + (( EUID != 0 )) && umask 002 || umask 022 # history: setopt append_history # append history list to the history file (important for multiple parallel zsh sessions!) @@ -407,7 +411,7 @@ fi # }}} # {{{ set prompt - if [ -f "/usr/share/zsh/$ZSH_VERSION/functions/Prompts/promptinit" ] && autoload promptinit && promptinit 2>/dev/null ; then + if autoload promptinit && promptinit 2>/dev/null ; then promptinit # people should be able to use their favourite prompt else print 'Notice: no promptinit available :('