諸行無常

IT色々お勉強中のブログ

tmuxインストール、使い方

% brew install tmux
==> Installing dependencies for tmux: openssl, libevent
==> Installing tmux dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2e.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2e.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2e: 465 files, 17M
==> Installing tmux dependency: libevent
==> Downloading https://homebrew.bintray.com/bottles/libevent-2.0.22.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libevent-2.0.22.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/libevent/2.0.22: 48 files, 1.8M
==> Installing tmux
==> Downloading https://homebrew.bintray.com/bottles/tmux-2.1.yosemite.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring tmux-2.1.yosemite.bottle.1.tar.gz
==> Caveats
Example configurations have been installed to:
  /usr/local/opt/tmux/share/tmux/examples

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/tmux/2.1: 15 files, 684K

Ctrl b d : デタッチする

Ctrl b c : 新しいWindowを作る

Ctrl b n : 次のWindowへ移動する

Ctrl b p : 前のWindowへ移動する

Ctrl b , : Windowに名前をつける

Ctrl b % : Windowを左右のPaneに分割する

Ctrl b ” : Windowを上下のPaneに分割する

Ctrl b o : Pane間を移動する

Ctrl b ? : ヘルプを表示する

達人のtmux.confコピペしたら動かなかった

brew install reattach-to-user-namespace