2020-03-28 00:27:32 +00:00
|
|
|
# .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
|
2020-03-30 15:10:46 +00:00
|
|
|
tmux has-session -t "one" &> /dev/null
|
2020-03-28 00:27:32 +00:00
|
|
|
if [ $? -eq 1 ]; then
|
|
|
|
exec tmux new-session -s "one"
|
|
|
|
exit
|
|
|
|
else
|
|
|
|
exec tmux attach -t "one"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|