summaryrefslogtreecommitdiff
path: root/mac/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/zsh')
-rw-r--r--mac/.config/zsh/.zshrc11
1 files changed, 0 insertions, 11 deletions
diff --git a/mac/.config/zsh/.zshrc b/mac/.config/zsh/.zshrc
index 4126b8f..d5f3490 100644
--- a/mac/.config/zsh/.zshrc
+++ b/mac/.config/zsh/.zshrc
@@ -112,14 +112,3 @@ zstyle ':fzf-tab:*' switch-group ',' '.' # switch group using `,` and `.`
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc" ] && source "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutenvrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/zshnameddirrc" ] && source "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/zshnameddirrc"
-
-if command -v tmux >/dev/null 2>&1 && [ -z "$TMUX" ]; then
- terminal_count=$(pgrep -u "$USER" -ax "${TERMINAL:-st}" | grep -Ev 'ncmpcpp|newsboat|pulsemixer|spterm|splf|spcalc|stig|vimwikitodo' | wc -l)
- if [ "$terminal_count" -le 1 ]; then
- if ! tmux has-session 2>/dev/null; then
- exec tmux new-session -s code
- else
- exec tmux attach-session
- fi
- fi
-fi