about summary refs log tree commit diff
path: root/configs/shared/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/zsh/.zshrc')
-rw-r--r--configs/shared/zsh/.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc
index db60e3841059..b4ccd66a16c6 100644
--- a/configs/shared/zsh/.zshrc
+++ b/configs/shared/zsh/.zshrc
@@ -47,3 +47,9 @@ source "$DOTFILES/configs/shared/zsh/variables.zsh"
 source "$DOTFILES/configs/shared/zsh/aliases.zsh"
 source "$DOTFILES/configs/shared/zsh/functions.zsh"
 source "$DOTFILES/configs/shared/zsh/zle.zsh"
+
+preexec() {
+  # `preexec` runs before every command is run.
+  update_x11_forwarding
+}
+