Move my custom zshrc config into a better named folder
This commit is contained in:
parent
83adf42719
commit
b9cadeee59
45 changed files with 4 additions and 4 deletions
13
shells/zsh/oh-my-zsh-custom/shortcuts.zsh
Normal file
13
shells/zsh/oh-my-zsh-custom/shortcuts.zsh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue