Files
zpower/files/tmux-ssh.zsh
Raum0x2A 54ee48bc7c Minor feature update
Added power line font path to enable glyphs from powerline font.
MOTD replaced with `neofetch --off | lolcat`
minor bug fixes
2025-12-10 01:28:53 -07:00

14 lines
350 B
Bash

if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
tmux has-session -t remote 2>/dev/null
if [ $? != 0 ]; then
exec tmux new-session -s remote "zsh"
else
exec tmux attach-session -t remote
fi
fi
if [ "$SSH_CONNECTION" != "" ]; then
tmux source-file $HOME/.tmux.conf.ssh
else
tmux source-file $HOME/.tmux.conf
fi