Skip to content

tobeygit/tmux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

tmux

紀錄 tmux 設定檔

Mac OS

# creat .tmux.conf file 
vim ~/.tmux.conf

# reload tmux config
tmux source-file ~/.tmux.conf

# list tmux sessions
tmux ls

Changes

  • Change prefix from 'Ctrl+B' to 'Ctrl+A'
  • Using the mouse on a pane

tmux-plugins/tmux-pain-control

Navigation

  • prefix + h and prefix + C-h
    select pane on the left
  • prefix + j and prefix + C-j
    select pane below the current one
  • prefix + k and prefix + C-k
    select pane above
  • prefix + l and prefix + C-l
    select pane on the right

Note: This overrides tmux's default binding for toggling between last active windows, prefix + l. tmux-sensible gives you a better binding for that, prefix + a (if your prefix is C-a).

Resizing panes

  • prefix + shift + h
    resize current pane 5 cells to the left
  • prefix + shift + j
    resize 5 cells in the down direction
  • prefix + shift + k
    resize 5 cells in the up direction
  • prefix + shift + l
    resize 5 cells to the right

These mappings are repeatable.

The amount of cells to resize can be configured with @pane_resize option. See configuration section for the details.

pane splitting

Splitting panes

  • prefix + |
    split the current pane into two, left and right.
  • prefix + -
    split the current pane into two, top and bottom.
  • prefix + \
    split current pane full width into two, left and right.
  • prefix + _
    split current pane full height into two, top and bottom.

Newly created pane always has the same path as the original pane.

Swapping windows

  • prefix + < - moves current window one position to the left
  • prefix + > - moves current window one position to the right

Plugin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published