Last active
July 11, 2019 13:24
-
-
Save ohtsuchi/6100e906344c2864edffc3e9b5c0ce63 to your computer and use it in GitHub Desktop.
reload
tmux source ~/.tmux.conf
Prefix :
synchronize-panes
:setw synchronize-panes on
:setw synchronize-panes off
Prefix [
- コピーの始点
<Space>
- 終点
<Enter>
- 貼り付け
Prefix ]
Prefix =
tmux new -s <session名>
tmux ls
- 現在起動中のセッションに接続されているクライアントを確認
tmux lsc
Prefix d
tmux attach
またはtmux a
-t [target-session]
- 複数のtmuxセッションを起動している場合
tmux a -t <session名>
tmux kill-session
-t [target-session]
- 指定しない場合は直近でアタッチしていたセッションが削除
tmux kill-session
- 全てのセッションを削除
tmux kill-server
Prefix )
Prefix (
Prefix $
tmux rename -t<古い名前> <新しい名前>
tmux rename -t0 hoge-session
- Create
Prefix c
- 移動
Prefix n
Prefix p
Prefix 番号
- ウィンドウ名変更
Prefix ,
Prefix <
Prefix >
Prefix w
Prefix f
Prefix &
Prefix o
Prefix q # 数字表示 -> 選択
Prefix ; # 直前のペイン
prefix + h(j,k,l)
andprefix + C-h(j,k,l)
prefix + shift + h(j,k,l)
Prefix |
Prefix -
Prefix {
Prefix }
Prefix <SPACE>
Prefix C-o
Prefix z
- 現在選択している Pane が新しく作られた Window へ移動
Prefix !
- その Pane で動作中のプログラムも一緒に終了
Prefix x
- ハイライトされている状態で
y
- clipboard にコピー
#{prefix_highlight}
#{cpu_percentage} #{cpu_bg_color} #{cpu_icon}
# 右パネルを設定
set -g status-right '#{prefix_highlight} | %Y-%m-%d(%a) %H:%M | CPU:#{cpu_percentage} #{cpu_bg_color} #{cpu_icon}'
- In tmux copy mode:
o
- システムのプログラムで開く。Macは
open
コマンド
- システムのプログラムで開く。Macは
<C-o>
$EDITOR
で開く
brew install urlview
u
- listing all urls on bottom pane
brew install fpp
- tmux:
f
->F
に変更
set -g @fpp-key 'F'
[c] command mode
$F
- (例)
cat $F | wc -l
- (例)
prefix + Ctrl-s
- saveprefix + Ctrl-r
- restore
set -g @continuum-restore 'on'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment