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'"
More than 5 years have passed since last update.
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'"
Register as a new user and use Qiita more conveniently