Add dnot die to tmux
This commit is contained in:
parent
fc285ed80b
commit
6e55fa0a59
1 changed files with 8 additions and 4 deletions
|
@ -10,13 +10,17 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
if [ -z "$TMUX" ] && [[ $- == *i* ]]
|
if [ -z "$TMUX" ] && [[ $- == *i* ]]
|
||||||
|
then
|
||||||
|
(tmux ls | grep -vq attached && tmux at) || tmux
|
||||||
|
if [ ! -f /tmp/dontdie ]
|
||||||
then
|
then
|
||||||
(tmux ls | grep -vq attached && tmux at) || tmux
|
exit
|
||||||
exit
|
|
||||||
fi
|
fi
|
||||||
|
rm /tmp/dontdie
|
||||||
|
fi
|
||||||
|
|
||||||
${builtins.readFile ./p10k.zsh.initfirst}
|
${builtins.readFile ./p10k.zsh.initfirst}
|
||||||
'';
|
'';
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
source "${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
||||||
|
|
Loading…
Reference in a new issue