summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-30 02:35:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-11-30 02:35:59 +0900
commit5164a09f91af4127e715385bba27a688d7bd2a6d (patch)
treefe3b7607671a7c76699960b89f394324fda2fe1c
parent6d2938a88318e227c53dd9fc7c1276fa28719421 (diff)
modified zsh/.zshrc
-rw-r--r--ar/.config/zsh/.zshrc22
1 files changed, 11 insertions, 11 deletions
diff --git a/ar/.config/zsh/.zshrc b/ar/.config/zsh/.zshrc
index f037945..12fa76a 100644
--- a/ar/.config/zsh/.zshrc
+++ b/ar/.config/zsh/.zshrc
@@ -128,14 +128,14 @@ export AVANTE_OPENAI_API_KEY="$(pass show api/chatGPT/nvim | head -n1)"
export OPENAI_API_KEY="$(pass show api/chatGPT/nvim | head -n1)"
-### --- TMUX --- ###
-# 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
+## --- TMUX --- ###
+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