Add zsh hook
This commit is contained in:
parent
27b9a94305
commit
3a690862ee
1 changed files with 7 additions and 0 deletions
7
hook.zsh
Normal file
7
hook.zsh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Source this in your ~/.zshrc
|
||||||
|
|
||||||
|
_shync_preexec(){
|
||||||
|
shync history add $1
|
||||||
|
}
|
||||||
|
|
||||||
|
add-zsh-hook preexec _shync_preexec
|
Loading…
Reference in a new issue