X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=b864606487e000d6ed201eb622e704e217c4768a;hb=refs%2Ftags%2F0.3.50;hp=47c79448f6342ffd16572c02d21f6bc3465933d7;hpb=1ba504b8966b69fae818621fb9d1e96220349c40;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 47c7944..b864606 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -194,7 +194,7 @@ xcat() { # setup files. This should be called at the end of .zshrc. xunfunction() { local -a funcs - funcs=(check_com salias xcat xsource xunfunction zrcautoload) + funcs=(salias xcat xsource xunfunction zrcautoload) for func in $funcs ; do [[ -n ${functions[$func]} ]] \ @@ -289,6 +289,11 @@ is43(){ return 1 } +# Use is-at-least, if you need to check more precisely. +# Note that this test will *always* fail, if the is-at-least +# function could not be marked for autoloading. +zrcautoload is-at-least || is-at-least() { return 1 } + #f1# Checks whether or not you're running grml isgrml(){ [[ -f /etc/grml_version ]] && return 0 @@ -369,7 +374,7 @@ else fi #v# -(( ${+PAGER} )) || export PAGER="less" +export PAGER=${PAGER:-less} #v# export MAIL=${MAIL:-/var/mail/$USER} @@ -381,7 +386,7 @@ export SHELL='/bin/zsh' check_com -c dircolors && eval $(dircolors -b) # set width of man pages to 80 for more convenient reading -# (( ${+MANWIDTH} )) || export MANWIDTH=80 +# export MANWIDTH=${MANWIDTH:-80} # Search path for the cd command # cdpath=(.. ~) @@ -441,7 +446,9 @@ bindkey '\e[1~' beginning-of-line # home bindkey '\e[4~' end-of-line # end bindkey '\e[A' up-line-or-search # cursor up bindkey '\e[B' down-line-or-search # - -bindkey '^x' history-beginning-search-backward # alternative ways of searching the shell history + +bindkey '^xp' history-beginning-search-backward +bindkey '^xP' history-beginning-search-forward # bindkey -s '^L' "|less\n" # ctrl-L pipes to less # bindkey -s '^B' " &\n" # ctrl-B runs it in the background # if terminal type is set to 'rxvt':