 # tmux cheat sheet ###### tags: `kreisacademy` ### 設定 tmuxの設定は ~/.tmux.conf /etc/tmux.conf 例) ```shell= set-option -g mouse on bind-key -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" bind-key -n WheelDownPane select-pane -t= \; send-keys -M ``` ### session start ```shell= # 新規session name = main $tmux new -s main # session 一覧 $tmux ls ``` ### ペイン操作 ctr-b | 操作 | コマンド | | -------- | -------- | | 右にペイン追加 | % | | 下にペイン追加 | " | | ペイン移動 | o or ; | | ペイン一覧 | s | | ペインを解除してウインドウ化 | ! | | ペインの破棄 | x | | ペインのサイズ変更 | ctl - 矢印 | | レイアウト変更 | スペース | | 時計表示 |t | ### ウインドウ操作 | 操作 | コマンド | | -------- | -------- | | 新規 | c | | 一覧 | w | | 破棄 | & | | 移動 | n |
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up