LoginSignup
1
0

More than 3 years have passed since last update.

MacOS:tmuxinatorがtmux 2.8 までしか対応していなかったのでtmuxをダウングレードする

Posted at

MacOSをバージョンアップしてCatalinaにしたらtmuxinatorがtmux(v2.8)までしか対応しておらず起動しなくなった

Homebrewでtmuxをインストールしようとすると、latestバージョンしかインストールできない
2020年4月7日現在ではtmux(3.0a)がインストールされる

まずはtmuxアンインストール

$ brew uninstall tmux

home に移動してgit cloneしてくる

$ cd
$ git clone git@github.com:Homebrew/homebrew-core.git
$ cd homebrew-core

git log を確認してインストールしたいバージョンのSHAを探す

$ git log master -- Formula/tmux.rb

こんな感じで出てくる

commit 284cd20f3bbd1f773c82a3a2b6081facf9295657
Author: Mike McQuaid <mike@mikemcquaid.com>
Date:   Sat Mar 14 19:45:59 2020 +0000


    tmux: fix RuboCop Style/TrailingBodyOnMethodDefinition.

commit b0f75c35372d4708f7340c786ed0c24685cf553c
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date:   Thu Feb 27 18:41:43 2020 +0000

    tmux: update 3.0a_1 bottle.

commit 37bf45e0204fab5b79bc50896b02f3e6c923c7a1
Author: Yuk Pong Cheng (Daniel) <danielyp_cheng@apple.com>
Date:   Fri Feb 28 02:30:20 2020 +0800

    tmux: enable utf8proc and fix typo

    fix dependency order

    Closes #50773.

    Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com>

commit f509634ee4adeb6c9857850133269f58f84b940e
Author: Daniel Cheng (鄭郁邦) <j16sdiz@users.noreply.github.com>
Date:   Fri Feb 28 01:53:28 2020 +0800

    tmux: enable utf8proc and fix typo

commitログから欲しいバージョンのSHAでインストーする

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/[commit SHA]/Formula/tmux.rb

ver2.8の場合↓

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d2ab46c92cc88470b1c54f5da2d0a1595188533/Formula/tmux.rb

バージョン確認してみる

$ tmux -V
tmux 2.8
1
0
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
1
0