diff options
| author | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-26 20:17:03 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@simplelittledream.com> | 2022-10-26 20:17:03 -0400 |
| commit | 5b7fee8860acad725b682503a490f354726f9c8d (patch) | |
| tree | 971f239f33ccbfbbeb5e2c9d6ff9f8fad07712db /.config/shells/zsh/.zshrc | |
| parent | e92e82df51537e958a7d642bcd7898b1b5009327 (diff) | |
Launch Tmux from zshrc to prevent issues
Diffstat (limited to '.config/shells/zsh/.zshrc')
| -rw-r--r-- | .config/shells/zsh/.zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/shells/zsh/.zshrc b/.config/shells/zsh/.zshrc index 75f7f16..d2b735d 100644 --- a/.config/shells/zsh/.zshrc +++ b/.config/shells/zsh/.zshrc @@ -1,3 +1,7 @@ +if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then + exec tmux +fi + source ~/.zprofile export SHELLDIR="$XDG_CONFIG_HOME/shells" export ZSH="$SHELLDIR/zsh" |
