From eda4a020bf78571a4e403b9412d168e5832c0b55 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 18 Oct 2020 16:35:30 +0100 Subject: [PATCH] Add visor.zsh for use with iTerm2 iTerm2 has tmux integration which I don't care for, this integration mucks up using tmux as the shell for a profile. To work around this, the `visor.zsh` script is used in the _Send text at start_ for the a Quake style visor profile as follows: ``` source ~/.config/tmux/visor.zsh ``` --- visor.zsh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 visor.zsh diff --git a/visor.zsh b/visor.zsh new file mode 100755 index 0000000..25c93b1 --- /dev/null +++ b/visor.zsh @@ -0,0 +1,6 @@ +if ! tmux list-sessions -F '#{session_name}' | grep 'visor' > /dev/null; then + tmux new-session -d -s visor + tmux rename-window -t visor:0 home +fi +tmux attach-session -t visor +exit