Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux command list #27

Open
zhouhaibing089 opened this issue Aug 18, 2017 · 0 comments
Open

tmux command list #27

zhouhaibing089 opened this issue Aug 18, 2017 · 0 comments

Comments

@zhouhaibing089
Copy link
Owner

zhouhaibing089 commented Aug 18, 2017

useful tutorial: https://leanpub.com/the-tao-of-tmux/read

cli

## create a new session
$ tmux new-session -s 'session name' 
## switch to the certain session
$ tmux switch-client -t 'session name' 
## rename session
$ tmux rename-session -t 'old name' 'new name'
## check whether a session exists or not
$ tmux has-session -t 'session name'
## close a session
$ tmux kill-session -t 'session name'
## move current window to the target index
$ tmux move-window -t 'index'
## move window in source index to target index
$ tmux move-window -s 'source index' -t 'to index'
## choose window
$ tmux choose-window

key bindings

prefix + d: dettach a session
prefix + (: previous session
prefix + ): next session
prefix + L: switch back to the last session
prefix + s: select a session interactively.
prefix + $: rename session
prefix + :: switch to commands mode
prefix + c: create a new window
prefix + [0-9]: traverse windows
prefix + ': enter the window index
prefix + f: find window
prefix + l: the last selected window
prefix + w: list windows
prefix + <space>: switch window layout
prefix + %: split window horizontal
prefix + ": split window vertical
prefix + x: kill pane
prefix + up/down/right/left: traverse pane
prefix + ;: last pane
prefix + o: the next pane
prefix + z: zoom a pane

commands inside tmux

kill-session:
rename-session:
rename-window:
split-window -h:
split-window -v
kill-pane
kill-window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant