LoginSignup
8
8

More than 5 years have passed since last update.

.tmux.confで環境ごとに動作を変える

Posted at

macでコピペのためにreattach-to-user-namespaceがlinux環境で実行したらエラーになってしまうので対策してみた。
調べるとif-shellというコマンドがあるらしい。

以下でうまく動作してくれた。

if-shell "test expr '$OSTYPE' : 'darwin.*' > /dev/null" "set-option -g default-command 'reattach-to-user-namespace -l zsh'"
8
8
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
8
8