tmux and zsh crash fix

This commit is contained in:
2024-04-24 11:12:45 +02:00
parent 21a1fd09d5
commit 68c5ece2d0
2 changed files with 2 additions and 4 deletions

View File

@@ -39,7 +39,8 @@ in {
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
eval "$(zoxide init --cmd cd zsh)"
if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
exec tmux new-session -A -s $USER >/dev/null 2>&1
# exec tmux new-session -A -s $USER >/dev/null 2>&1
exec tmux new-session -t $USER >/dev/null 2>&1 | tmux new-session -A -s $USER >/dev/null 2>&1
fi
'';
};

View File

@@ -13,9 +13,6 @@
yank
];
extraConfig = ''
# reattach userspaces
set -g default-command "reattach-to-user-namespace -l zsh"
# history limit
set -g history-limit 5000