X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=ca900436786c6c979d0387bee1c7d8fc53687d73;hb=65ac134204e0988d609484b6765f17b9921d7722;hp=51694da2eaefac39a49060e662ed76c8bb2ea656;hpb=f98b04694856a470d5577f952111109ba2be72a0;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 51694da..ca90043 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1087,7 +1087,7 @@ function help-show-abk () { zle -N help-show-abk -# press "ctrl-e d" to insert the actual date in the form yyyy-mm-dd +# press "ctrl-x d" to insert the actual date in the form yyyy-mm-dd function insert-datestamp () { LBUFFER+=${(%):-'%D{%Y-%m-%d}'}; } zle -N insert-datestamp @@ -1477,7 +1477,7 @@ bind2maps emacs viins -- -s ' ' magic-space #k# Trigger menu-complete bind2maps emacs viins -- -s '\ei' menu-complete # menu completion via esc-i #k# Insert a timestamp on the command line (yyyy-mm-dd) -bind2maps emacs viins -- -s '\ed' insert-datestamp +bind2maps emacs viins -- -s '^xd' insert-datestamp #k# Insert last typed word bind2maps emacs viins -- -s "\em" insert-last-typed-word #k# A smart shortcut for \kbd{fg}