Created
March 13, 2014 07:52
-
-
Save teshi04/9523600 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ログイン時に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