summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-24 16:33:26 +0200
committerKyren223 <Kyren223@proton.me>2024-11-24 16:33:26 +0200
commitf5e03b1a9e3307e296c7dc431cbe5c0a44a47020 (patch)
treee2c4ab4242e5c5ad70d266eff688de44547dc22a /.zshrc
parentf590351dd0a3a4706452723e5a0422a25a08121f (diff)
Removed tmux from opening automatically, I will just attach/open it
myself to prevent terminals (like IntelliJ) from using tmux
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 8 insertions, 5 deletions
diff --git a/.zshrc b/.zshrc
index af12135..dbbb156 100644
--- a/.zshrc
+++ b/.zshrc
@@ -92,12 +92,15 @@ esac
eval $(keychain --quiet --eval --timeout 300 ~/.ssh/id_ed25519)
# Open tmux if it's not open
-if [ -z "$TMUX" ]; then
- tmux a || tmux
- # HACK: Send a notification so systemd notification will work
- # Using tmux to only run this at startup
- # I guess this works because it initializes some stuff?
+# if [ -z "$TMUX" ]; then
+# tmux a || tmux
+# fi
+
+# HACK: Send a notification so systemd notification will work
+MARKER_FILE="/run/user/$(id -u)/zshrc_once_marker"
+if [ ! -f "$MARKER_FILE" ]; then
notify-send --urgency=normal --expire-time=1 " "
+ touch "$MARKER_FILE"
fi
END_TIME=$(date +%s.%4N)