From 6b9878ae4cc114d8692b21cfa0b487f3e58bc9bc Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 13 Nov 2023 09:23:38 -0600 Subject: [PATCH] No tmux by default because of pasting issues --- modules/home-manager/fish/interactiveShellInit.fish | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/fish/interactiveShellInit.fish b/modules/home-manager/fish/interactiveShellInit.fish index 9080578..58803dd 100644 --- a/modules/home-manager/fish/interactiveShellInit.fish +++ b/modules/home-manager/fish/interactiveShellInit.fish @@ -158,6 +158,12 @@ 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 +# tmux has issues when pasting sometimes where it seems to interpret a newline +# as C-j and jumps a pane and screws up the previous pane somehow +# I think a tput reset can fix it, but it's just annoying and I don't think I +# currently make heavy enough use of sessions and detaching and tmux-resurrect for +# it to be worth it + +# 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