Merge branch 'master' of github.com:Jab2870/dotfiles

This commit is contained in:
Jonathan Hodgson 2018-10-05 09:51:45 +01:00
commit c7eff68977
16 changed files with 430 additions and 66 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