X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=4f3070f88394dd970326cff20689bade6398ba0c;hb=bc40f3c9959e7b9b37b3c193262550691ac95c55;hp=68acd4eb49a90f33fdc54d23dffcf67fbce55e45;hpb=53771baf11d825d6a31cbac333f2bbb3e4277c55;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 68acd4e..4f3070f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -596,7 +596,7 @@ typeset -U path cdpath fpath manpath # Load a few modules is4 && \ -for mod in complist deltochar mathfunc ; do +for mod in parameter complist deltochar mathfunc ; do zmodload -i zsh/${mod} 2>/dev/null || print "Notice: no ${mod} available :(" done @@ -1040,15 +1040,14 @@ zleiab() { LBUFFER+=${abk[$MATCH]:-$MATCH} } -zle -N zleiab && bindkey ",." zleiab ## KEYB! +zle -N zleiab help-show-abk() { zle -M "$(print "Type ,. after these abbreviations to expand them:"; print -a -C 2 ${(kv)abk})" } -#k# Display list of abbreviations that expand when followed by ,. -zle -N help-show-abk && bindkey '^xb' help-show-abk ## KEYB! +zle -N help-show-abk # press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd insert-datestamp() { LBUFFER+=${(%):-'%D{%Y-%m-%d}'}; } @@ -1128,7 +1127,7 @@ inplaceMkDirs() { } #k# mkdir -p