diff options
author | Ellie Huxtable <e@elm.sh> | 2020-10-05 01:00:55 +0100 |
---|---|---|
committer | Ellie Huxtable <e@elm.sh> | 2020-10-05 01:00:55 +0100 |
commit | 3a690862eefb2ed45a9aa3dd7d57e56da248c5ef (patch) | |
tree | b002b3f1d1b73ca72c7e8d58a4d787ab808e59cd | |
parent | 27b9a9430518c071a2a7de7f46dfd8aac3cead80 (diff) |
Add zsh hook
-rw-r--r-- | hook.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hook.zsh b/hook.zsh new file mode 100644 index 00000000..dfdadf52 --- /dev/null +++ b/hook.zsh @@ -0,0 +1,7 @@ +# Source this in your ~/.zshrc + +_shync_preexec(){ + shync history add $1 +} + +add-zsh-hook preexec _shync_preexec |