48
44

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

tmuxで色んなホストにsshする時に便利な.ssh/config

Last updated at Posted at 2013-10-04
ssh-config
Host aaa xxx
  PermitLocalCommand  yes
  LocalCommand tmux rename-window %n

ホスト側の .ssh/config に書いておくことで ssh した時に tmux のウィンドウの名前が変わる

名前を手で変える場合は prefix , で変える

追記(2013/10/5):
Host * にしてしまうと git で push するときなどにも動いてしまうのでやめた方がいいと思います

48
44
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
48
44

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?