Initial commit

This commit is contained in:
Bradley Richins
2020-04-07 20:05:59 -06:00
commit b25fde0812
9 changed files with 791 additions and 0 deletions

13
files/tmux-ssh.zsh Normal file
View File

@@ -0,0 +1,13 @@
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
tmux has-session -t remote 2>/dev/null
if [ $? != 0 ]; then
exec tmux new-session -s remote
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