Add dnot die to tmux

This commit is contained in:
Bad 2021-04-16 11:03:26 +02:00
parent fc285ed80b
commit 6e55fa0a59

View file

@ -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"