Skip to content

Commit

Permalink
update(linux-tmux): scroll in tmux
Browse files Browse the repository at this point in the history
issue #104
  • Loading branch information
sabertazimi committed Jan 24, 2019
1 parent e09b655 commit d5fa653
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions programming/linux/linuxBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
- [Session management](#session-management)
- [Tmux Windows Hotkeys](#tmux-windows-hotkeys)
- [Tmux Panes Hotkeys](#tmux-panes-hotkeys)
- [Tmux Scroll](#tmux-scroll)
- [Configuration](#configuration)
- [Perf Tools](#perf-tools)
- [`uptime`](#uptime)
Expand Down Expand Up @@ -1892,6 +1893,12 @@ x kill the current pane
t # 显示一个时钟
```
##### Tmux Scroll
- `C-a + [` to into scoll mode, `q` to quit scoll mode
- copy mode can scoll too
- `set -g mouse on` for enabling mouse scolling
#### Configuration
```bash
Expand All @@ -1911,6 +1918,9 @@ set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Enable scroll mouse
set -g mouse on
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
Expand All @@ -1931,6 +1941,7 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind p
bind p pasteb
setw -g mode-keys vi # Vi
# Highlight active window
Expand Down

0 comments on commit d5fa653

Please sign in to comment.