Lots of zsh changes

This commit is contained in:
Jonathan Hodgson 2020-03-11 11:30:54 +00:00
parent d6599e53fa
commit 715b2b7d3e
15 changed files with 817 additions and 158 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env zsh
function append_date() {
# Prepend "info" to the command line and run it.
BUFFER="$BUFFER-$(date '+%Y-%m-%d')"
zle end-of-line
}
# Define a widget called "run_info", mapped to our function above.
zle -N append_date
# Bind it to ESC-i.
#bindkey "" append_date