diff options
| -rw-r--r-- | ar/.config/zsh/.zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ar/.config/zsh/.zshrc b/ar/.config/zsh/.zshrc index a79f93e..20e9351 100644 --- a/ar/.config/zsh/.zshrc +++ b/ar/.config/zsh/.zshrc @@ -114,7 +114,7 @@ zstyle ':fzf-tab:*' switch-group ',' '.' # switch group using `,` and `.` [ -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" -x "${TERMINAL:-st}" | wc -l) + terminal_count=$(pgrep -u "$USER" -ax "${TERMINAL:-st}" | grep -Ev 'spterm|splf|spcalc|vimwikitodo' | wc -l) if [ "$terminal_count" -le 1 ]; then if ! tmux has-session 2>/dev/null; then exec tmux new-session -s code |
