Setup for tilde.one
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
540 B

# .bash_profile
if [ -f ~/.profile ]; then
. ~/.profile
fi
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin directories
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
[[ $- != *i* ]] && return
if [[ -z "$TMUX" ]] ; then
tmux has-session -t "one" &> /dev/null
if [ $? -eq 1 ]; then
exec tmux new-session -s "one"
exit
else
exec tmux attach -t "one"
exit
fi
fi