diff --git a/nix/homeModules/common/fish/functions/__tmux-maybe-create.fish b/nix/homeModules/common/fish/functions/__tmux-maybe-create.fish index 4b83ffd3..b3bf71a4 100644 --- a/nix/homeModules/common/fish/functions/__tmux-maybe-create.fish +++ b/nix/homeModules/common/fish/functions/__tmux-maybe-create.fish @@ -5,11 +5,9 @@ function __tmux-maybe-create \ set session_dir $argv[2] if pgrep tmux 2>&1 >/dev/null; or ! tmux has -t=$session_name 2>/dev/null - tmux \ - new-session -ds $session_name -c $session_dir \; \ - send-keys -t $session_name $EDITOR ENTER \; \ - new-window -t $session_name -c $session_dir \; \ - select-window -t $session_name:1 + # Note: + # Maybe it can be interesting to read from an envvar of array, where each element is a call back + tmux new-session -ds $session_name -c $session_dir end end