From 3a690862eefb2ed45a9aa3dd7d57e56da248c5ef Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 5 Oct 2020 01:00:55 +0100 Subject: Add zsh hook --- hook.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hook.zsh 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 -- cgit v1.3.1