Add zsh hook

This commit is contained in:
Ellie Huxtable 2020-10-05 01:00:55 +01:00
parent 27b9a94305
commit 3a690862ee

7
hook.zsh Normal file
View File

@ -0,0 +1,7 @@
# Source this in your ~/.zshrc
_shync_preexec(){
shync history add $1
}
add-zsh-hook preexec _shync_preexec