15
16

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.

zsh起動時にtmux同時起動

Last updated at Posted at 2014-01-23

~/.zshrcに1行追加

.zshrc
[[ -z "$TMUX" && ! -z "$PS1" ]] && tmux

参考

zsh起動時にtmuxやtscreenやscreenを起動する - Humanity

補足

screenも併せて使いたい場合の注意点

[[ -z "$TMUX" && -z "$WINDOW" && ! -z "$PS1" ]]

とやっておかないとscreen起動時にもtmuxが起動してしまいます。

15
16
0

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
15
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?