diff options
author | William Carroll <wpcarro@gmail.com> | 2019-04-03T16·19+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-04-03T16·19+0100 |
commit | 4c1fbe01f64b18736e499c7600e6a0776c2c3436 (patch) | |
tree | a1fea80254ec65fec703b57c6bb6090af5a23688 /configs/shared/zsh/.zshrc | |
parent | 10aef4e40d886473238e81d8f2e2866e3d99f4f4 (diff) |
Fix $DISPLAY issues with Tmux
Ensure that DISPLAY is set correctly so that commands executed in Tmux that require X windows don't disappear.
Diffstat (limited to 'configs/shared/zsh/.zshrc')
-rw-r--r-- | configs/shared/zsh/.zshrc | 6 |
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 +} + |