Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove tmux's -r options
  • Loading branch information
vinian committed Mar 23, 2012
1 parent 88ddb21 commit 4e384da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions shell/bash_profile
Expand Up @@ -11,8 +11,7 @@ fi

export HISTSIZE=100000000
export HISTFILESIZE=100000000

alias e='exit'
export HISTTIMEFORMAT="%y/%m/%d %T "

# 编辑文件和快捷键使用 emacs 的方式
export EDITOR=emacs
Expand Down Expand Up @@ -59,7 +58,7 @@ if [ $name == 'sshd:' ]; then
tmux neww -n 'working' -t vinian:1 1>/dev/null 2>&1
tmux neww -n 'debug' -t vinian:2 1>/dev/null 2>&1
tmux neww -n 'cmd' -t vinian:3 1>/dev/null 2>&1
tmux neww -n 'emacs' -t vinian:4 emacs 1>/dev/null 2>&1
tmux neww -n 'emacs' -t vinian:4 'emacs -nw' 1>/dev/null 2>&1
tmux neww -n 'github' -t vinian:5 1>/dev/null 2>&1
tmux neww -n 'other' -t vinian:6 1>/dev/null 2>&1
# choose session and window
Expand All @@ -70,4 +69,4 @@ if [ $name == 'sshd:' ]; then
tmux attach-session -dr -t $session_id
exit 0
fi
fi
fi
4 changes: 2 additions & 2 deletions tmux/bash_conf
Expand Up @@ -22,7 +22,7 @@ if [ $name == 'sshd:' ]; then
tmux -2 attach-session -t vinian 1>/dev/null 2>&1
else
session_id=`tmux ls | awk -F: '{print $1}'`
tmux attach-session -dr -t $session_id
tmux attach-session -d -t $session_id
exit 0
fi
fi
fi

0 comments on commit 4e384da

Please sign in to comment.