change handling of tmux
This commit is contained in:
parent
3883ffbb19
commit
46dbd0c4bb
@ -9,7 +9,7 @@
|
|||||||
tmux = {
|
tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
terminal = "xterm-256color";
|
terminal = "xterm-256color";
|
||||||
newSession = true;
|
newSession = false;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
historyLimit = 10000;
|
historyLimit = 10000;
|
||||||
clock24 = true;
|
clock24 = true;
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
initExtraFirst = '' # very first inits in zshrc
|
initExtraFirst = '' # very first inits in zshrc
|
||||||
if [[ $DISPLAY ]]; then
|
if [[ $DISPLAY ]]; then
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
tmux attach
|
[[ -z "$TMUX" ]] && (tmux attach || tmux new-session)
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user