Skip to content

Commit 25cb91f

Browse files
authored
Merge pull request #66 from jjant/patch-1
Show initial values of modified options
2 parents 5d089e4 + e463ee9 commit 25cb91f

File tree

1 file changed

+41
-29
lines changed

1 file changed

+41
-29
lines changed

README.md

Lines changed: 41 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,60 @@ Tested and working on Linux, OSX and Cygwin.
2424

2525
### Options
2626

27-
# address vim mode switching delay (http://superuser.com/a/252717/65504)
28-
set -s escape-time 0
27+
```tmux
28+
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
29+
set -s escape-time 0
2930

30-
# increase scrollback buffer size
31-
set -g history-limit 50000
31+
# Increase scrollback buffer size from 2000 to 50000 lines
32+
set -g history-limit 50000
3233

33-
# tmux messages are displayed for 4 seconds
34-
set -g display-time 4000
34+
# Increase tmux messages display duration from 750ms to 4s
35+
set -g display-time 4000
3536

36-
# refresh 'status-left' and 'status-right' more often
37-
set -g status-interval 5
37+
# Refresh 'status-left' and 'status-right' more often, from every 15s to 5s
38+
set -g status-interval 5
3839

39-
# set only on OS X where it's required
40-
set -g default-command "reattach-to-user-namespace -l $SHELL"
40+
# (OS X) Fix pbcopy/pbpaste for old tmux versions (pre 2.6)
41+
set -g default-command "reattach-to-user-namespace -l $SHELL"
4142

42-
# upgrade $TERM
43-
set -g default-terminal "screen-256color"
43+
# Upgrade $TERM
44+
set -g default-terminal "screen-256color"
4445

45-
# emacs key bindings in tmux command prompt (prefix + :) are better than
46-
# vi keys, even for vim users
47-
set -g status-keys emacs
46+
# Emacs key bindings in tmux command prompt (prefix + :) are better than
47+
# vi keys, even for vim users
48+
set -g status-keys emacs
4849

49-
# focus events enabled for terminals that support them
50-
set -g focus-events on
50+
# Focus events enabled for terminals that support them
51+
set -g focus-events on
5152

52-
# super useful when using "grouped sessions" and multi-monitor setup
53-
setw -g aggressive-resize on
53+
# Super useful when using "grouped sessions" and multi-monitor setup
54+
setw -g aggressive-resize on
55+
```
5456

5557
### Key bindings
5658

57-
# easier and faster switching between next/prev window
58-
bind C-p previous-window
59-
bind C-n next-window
59+
```tmux
60+
# Easier and faster switching between next/prev window
61+
bind C-p previous-window
62+
bind C-n next-window
63+
```
6064

6165
Above bindings enhance the default `prefix + p` and `prefix + n` bindings by
6266
allowing you to hold `Ctrl` and repeat `a + p`/`a + n` (if your prefix is
6367
`C-a`), which is a lot quicker.
6468

65-
# source .tmux.conf as suggested in `man tmux`
66-
bind R source-file '~/.tmux.conf'
69+
```tmux
70+
# Source .tmux.conf as suggested in `man tmux`
71+
bind R source-file '~/.tmux.conf'
72+
```
6773

6874
"Adaptable" key bindings that build upon your `prefix` value:
6975

70-
# if prefix is 'C-a'
71-
bind C-a send-prefix
72-
bind a last-window
76+
```tmux
77+
# If prefix is 'C-a'
78+
bind C-a send-prefix
79+
bind a last-window
80+
```
7381

7482
If prefix is `C-b`, above keys will be `C-b` and `b`.<br/>
7583
If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea.
@@ -78,7 +86,9 @@ If prefix is `C-z`, above keys will be `C-z` and `z`... you get the idea.
7886

7987
Add plugin to the list of TPM plugins in `.tmux.conf`:
8088

81-
set -g @plugin 'tmux-plugins/tmux-sensible'
89+
```tmux
90+
set -g @plugin 'tmux-plugins/tmux-sensible'
91+
```
8292

8393
Hit `prefix + I` to fetch the plugin and source it. That's it!
8494

@@ -90,7 +100,9 @@ Clone the repo:
90100

91101
Add this line to the bottom of `.tmux.conf`:
92102

93-
run-shell ~/clone/path/sensible.tmux
103+
```tmux
104+
run-shell ~/clone/path/sensible.tmux
105+
```
94106

95107
Reload TMUX environment with `$ tmux source-file ~/.tmux.conf`, and that's it.
96108

0 commit comments

Comments
 (0)