Added power line font path to enable glyphs from powerline font. MOTD replaced with `neofetch --off | lolcat` minor bug fixes
9 lines
287 B
Bash
9 lines
287 B
Bash
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" = "" ]; then
|
|
tmux has-session -t $(tty | sed 's/^.....//') 2>/dev/null
|
|
if [ $? != 0 ]; then
|
|
exec tmux new-session -s $(tty | sed 's/^.....//') "zsh"
|
|
else
|
|
exec tmux attach-session -t $(tty | sed 's/^.....//')
|
|
fi
|
|
fi
|