代码改变世界

我的tmux config文件

2013-08-07 22:48 张小萌 阅读(...) 评论(...) 编辑 收藏

1 unbind C-b
2 set -g prefix C-s
3 setw -g mode-keys vi
4
5 #set mouse
6 set -g mouse-select-pane on
7
8 set default-path "~/depot"
9
10 #set loading application
11 new -s rails
12 splitw -h -c "~/depot"
13 select-pane -L
14 kill-pane
15
16 splitw -h vim
17
18 resize-pane -L 10
19 resize-pane -L 10
20 resize-pane -L 10
21 select-pane -L
22 splitw -v -c "~/depot"
23 select-pane -R
24
25 # split window like vim
26 # vim's defination of a horizontal/vertical split is revised from tumx's
27 bind s split-window -h
28 bind v split-window -v
29 # move arount panes wiht hjkl, as one would in vim after C-w
30 bind h select-pane -L
31 bind j select-pane -D
32 bind k select-pane -U
33 bind l select-pane -R
34
35 # resize panes like vim
36 # feel free to change the "1" to however many lines you want to resize by,
37 # only one at a time can be slow
38 bind < resize-pane -L 10
39 bind > resize-pane -R 10
40 bind - resize-pane -D 10
41 bind | resize-pane -U 10
42
43 # bind : to command-prompt like vim
44 # this is the default in tmux already
45 bind : command-prompt

注:depot为最近项目的路径