summaryrefslogtreecommitdiff
path: root/mac/.config/zsh
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 12:05:10 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 12:05:10 +0900
commitb15c6b710f19b74398acd738efb6281183c88b8d (patch)
tree5f23c44e6f06a4b943f4db9d4b9ab69b07bc5446 /mac/.config/zsh
parent818ff6ad1be60d8d0d9de039306d1fc5c7189081 (diff)
updates
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