1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

tmux autostart

This commit is contained in:
andrey_varnavskiy
2024-11-30 16:15:16 +05:00
parent 18dbf03066
commit 35841606e0

View File

@@ -30,5 +30,12 @@
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
initExtra = ''
# Start Tmux automatically if not already running
if [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi
'';
};
}