From 61980dfb873e76577bf0aac880c8a6638e5d26a5 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 18 Jan 2024 09:38:06 -0600 Subject: [PATCH] fish: autostart tmux --- home/features/cli/fish.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/features/cli/fish.nix b/home/features/cli/fish.nix index 770e4a8..0e1ba4c 100644 --- a/home/features/cli/fish.nix +++ b/home/features/cli/fish.nix @@ -40,6 +40,12 @@ in }; interactiveShellInit = + # Launch tmux + '' + if not set -q TMUX + tmux attach-session -t home || tmux new-session -s home + end + '' + # Open command buffer in vim when alt+e is pressed '' bind \ee edit_command_buffer