change handling of tmux
This commit is contained in:
parent
3883ffbb19
commit
46dbd0c4bb
@ -9,7 +9,7 @@
|
||||
tmux = {
|
||||
enable = true;
|
||||
terminal = "xterm-256color";
|
||||
newSession = true;
|
||||
newSession = false;
|
||||
keyMode = "vi";
|
||||
historyLimit = 10000;
|
||||
clock24 = true;
|
||||
|
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user