aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hook.zsh7
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