diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-04 23:01:52 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-04 23:01:52 -0400 |
| commit | 6c089ff3ec32f147325e16e6bde19c0916e43379 (patch) | |
| tree | 80a411830dfe888c9a6f8b738888821b4f6ce6c5 | |
| parent | update tmux config (diff) | |
| download | dotfiles-6c089ff3ec32f147325e16e6bde19c0916e43379.zip | |
Start tmux on zsh startup
| -rw-r--r-- | zsh/.zsh/tmux.sh | 5 | ||||
| -rwxr-xr-x | zsh/.zshrc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/zsh/.zsh/tmux.sh b/zsh/.zsh/tmux.sh new file mode 100644 index 0000000..323a8ec --- /dev/null +++ b/zsh/.zsh/tmux.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +if [[ "$TERM" != "tmux-256color" ]]; then + tmux attach-session -t "$USER" || tmux new-session -s "$USER" +fi @@ -1,6 +1,7 @@ #!/usr/bin/env zsh source ~/.zsh/prompt.sh +source ~/.zsh/tmux.sh autoload -Uz compinit compinit |