From b28e9a9b80b05979aec143ede6d26f28af462e4d Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 10 Nov 2023 12:44:52 -0600 Subject: [PATCH] Start tmux in interactive fish by default --- modules/home-manager/fish/interactiveShellInit.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home-manager/fish/interactiveShellInit.fish b/modules/home-manager/fish/interactiveShellInit.fish index 67f19d2..9080578 100644 --- a/modules/home-manager/fish/interactiveShellInit.fish +++ b/modules/home-manager/fish/interactiveShellInit.fish @@ -157,3 +157,7 @@ bind -M default \cv edit_command_buffer test $PWD = $HOME && begin cd $NICE_HOME || cd end + +if has_command tmux && ! set -q DO_NOT_AUTOSTART_TMUX && ! set -q TMUX + tmux new-session -D -s "default" &>/dev/null || tmux attach -t "default" +end