change handling of tmux

This commit is contained in:
Kabbone 2022-10-16 09:48:51 +02:00
parent 3883ffbb19
commit 46dbd0c4bb
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
tmux = {
enable = true;
terminal = "xterm-256color";
newSession = true;
newSession = false;
keyMode = "vi";
historyLimit = 10000;
clock24 = true;

View File

@ -22,7 +22,7 @@
initExtraFirst = '' # very first inits in zshrc
if [[ $DISPLAY ]]; then
[[ $- != *i* ]] && return
tmux attach
[[ -z "$TMUX" ]] && (tmux attach || tmux new-session)
fi
'';