No tmux by default because of pasting issues

This commit is contained in:
Daniel Flanagan 2023-11-13 09:23:38 -06:00
parent 3504ffef09
commit 6b9878ae4c
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -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