From c926deac3dcba4e65728097c8ecc36a36ca8983f Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 1 Feb 2025 14:43:25 +0100 Subject: [PATCH] Autostart tmux on zsh. --- modules/home-manager/zsh.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/home-manager/zsh.nix b/modules/home-manager/zsh.nix index c535f6d..e44c8a4 100644 --- a/modules/home-manager/zsh.nix +++ b/modules/home-manager/zsh.nix @@ -26,6 +26,11 @@ export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold' bindkey -M vicmd 'k' history-substring-search-up bindkey -M vicmd 'j' history-substring-search-down + + # Tmux autostart + if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then + exec tmux new-session -A -s default >/dev/null 2>&1 + fi ''; antidote = {