summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-28 15:23:35 +0200
committerKyren223 <Kyren223@proton.me>2024-11-28 15:23:35 +0200
commitd709d2de54f5be174bebde60a10e0e3fc7b58b44 (patch)
tree91e703ee01c00a40c40ea6299887a893f09c3b4a /.zshrc
parent9773ec9330ea80c7ae42e647423e810b20043dba (diff)
Fixed tmux loading on startup issue, also loads $HOME automatically
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index af7fb03..eb23f87 100644
--- a/.zshrc
+++ b/.zshrc
@@ -99,10 +99,10 @@ if [ ! -f "$MARKER_FILE" ]; then
touch "$MARKER_FILE"
fi
-# Open tmux if it's not open
-# if [ -z "$TMUX" ]; then
-# tmux a || tmux
-# fi
+# Open tmux in default user session if it's not open
+if [ -z "$TMUX" ]; then
+ tms $HOME
+fi
END_TIME=$(date +%s.%4N)
echo "Zsh startup time: $(echo "${END_TIME} - ${START_TIME}" | bc) seconds"