1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 02:43:23 -07:00

start/attach tmux session at login

This commit is contained in:
Connor Olding 2019-06-05 16:10:03 -07:00
parent 1e840bf1be
commit 6d64bee7fe

View File

@ -1,3 +1,10 @@
if [ "$SHLVL" -le 1 ] && ! expr "$TERM" : screen >/dev/null; then
if which tmux >/dev/null 2>/dev/null; then
tmux attach || tmux && exit
echo "tmux died ($?), continuing..."
fi
fi
setopt extended_glob
local host="${(L)HOST}"