Skip to content

Instantly share code, notes, and snippets.

@teshi04
Created March 13, 2014 07:52
Show Gist options
  • Save teshi04/9523600 to your computer and use it in GitHub Desktop.
Save teshi04/9523600 to your computer and use it in GitHub Desktop.
# ログイン時にtmuxを自動起動
if [ -z "$TMUX" -a -z "$STY" ]; then
if type tmuxx >/dev/null 2>&1; then
tmuxx
elif type tmux >/dev/null 2>&1; then
if tmux has-session && tmux list-sessions | /usr/bin/grep -qE '.*]$'; then
tmux attach && echo "tmux attached session "
else
tmux new-session && echo "tmux created new session"
fi
fi
fi
if which plenv > /dev/null; then eval "$(plenv init -)"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment