X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=cc72c87aaa3edc355796834ce5ea6e5ec9b7bc97;hb=49a3e778a62584520ab0f744ea545b651111dfed;hp=c01dac7fbb29b8894fe95ddc0a05b13e5e994505;hpb=d6923f34da2c51d707858e978626129c19c3b915;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c01dac7..cc72c87 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