Last active
May 15, 2017 10:13
-
-
Save antondemanov/b27999ce10cde4de89b71000c92a637a to your computer and use it in GitHub Desktop.
Small tmux cheatsheet
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
| # switch panes using Alt-arrow without prefix | |
| bind -n M-Left select-pane -L | |
| bind -n M-Right select-pane -R | |
| bind -n M-Up select-pane -U | |
| bind -n M-Down select-pane -D | |
| # split panes using | and - | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| # reload config file (change file location to your the tmux.conf you want to use) | |
| # Looks like it didn't work on Linux Mint | |
| bind r source-file ~/.tmux.conf | |
| # Enable mouse mode (tmux 2.1 and above) | |
| # Didn't work on Linux Mint | |
| # set -g mouse on | |
| # Make zsh default shell | |
| # set-option -g default-shell /bin/zsh |
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 cheatsheet: | |
| tmux-seesion: | |
| Meta + d: detach session | |
| tmux kill-session id | |
| tmux ls: list of sessions | |
| tmux rename-session -t id new_id | |
| tmux attach -t id | |
| Meta + z: zoom pane | |
| Windows: | |
| Meta + c: create | |
| Meta + n: next | |
| Meta + p: previous | |
| Mouse mode: | |
| Meta + : set mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment