mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
start/attach tmux session at login
This commit is contained in:
parent
1e840bf1be
commit
6d64bee7fe
1 changed files with 7 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue