hotoolong's blog

RailsやVim、業務で気になったことを綴ってます

tmux が 2.7 にバージョンが上がっていたので brew で アップデートする。

⋊> ~ brew info tmux                                                                                                                                                                                                                                                                                                                                                 21:47:47
tmux: stable 2.7 (bottled), HEAD
Terminal multiplexer
https://tmux.github.io/
/usr/local/Cellar/tmux/2.3_2 (10 files, 651.9KB)
  Poured from bottle on 2017-01-04 at 10:50:53
/usr/local/Cellar/tmux/2.5 (10 files, 660.3KB)
  Poured from bottle on 2017-09-19 at 00:14:09
/usr/local/Cellar/tmux/2.6 (10 files, 688.6KB) *
  Poured from bottle on 2018-02-11 at 15:02:02
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tmux.rb
==> Dependencies
Build: pkg-config ✔
Required: libevent ✔
Optional: utf8proc ✘
==> Options
--with-utf8proc
        Build with utf8proc support
--HEAD
        Install HEAD version
==> Caveats
Example configuration has been installed to:
  /usr/local/opt/tmux/share/tmux

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

tmuxの2.7が既に出ていたのでバージョンアップしてみる。

⋊> ~ brew update tmux                                                                                                                                                                                                                                                                                                                                               21:47:59
Error: This command updates brew itself, and does not take formula names.
Use 'brew upgrade tmux' instead.
⋊> ~ brew upgrade tmux                                                                                                                                                                                                                                                                                                                                              22:03:53
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 760a4601 to 27ec9dae.
Updated 2 taps (homebrew/core, caskroom/cask).
==> New Formulae
angle-grinder                                                                                                             libde265                                                                                                                  petsc
==> Updated Formulae
ansible ✔                   aws-shell                   dartsim                     exim                        git-annex                   jenkins-job-builder         libre                       moc                         osquery                     picard-tools                scrcpy                      tgui                        vtk
libuv ✔                     awscli                      dcd                         faas-cli                    git-fixup                   jetty                       librem                      mongo-orchestration         osrm-backend                pipenv                      scw                         thefuck                     watson
node ✔                      baresip                     dehydrated                  ffmbc                       gitlab-runner               joplin                      libsass                     mpd                         ott                         ppsspp                      sdl2_gfx                    tika                        webp
nvm ✔                       basex                       diamond                     ffmpeg                      gmt                         jruby                       libtensorflow               mpv                         packer                      pqiv                        sfcgal                      tile38                      wireshark
perl ✔                      bdw-gc                      dnscrypt-proxy              ffmpeg2theora               gmt@4                       json-fortran                libwps                      mpw                         paket                       presto                      sfk                         tippecanoe                  wp-cli
ruby-build ✔                bedops                      docfx                       ffmpegthumbnailer           gollum                      juju                        liquibase                   mruby                       pam-u2f                     primesieve                  shogun                      tokei                       wpcli-completion
vim ✔                       bento4                      docker-compose              ffms2                       gpgme                       jump                        logtalk                     nano                        pam_yubico                  pspg                        shyaml                      travis                      xmrig
abcmidi                     bettercap                   docker-compose-completion   field3d                     grafana                     jvgrep                      makeself                    nco                         pandoc                      puzzles                     silk                        twarc                       xonsh
acpica                      bluepill                    dockviz                     flann                       grib-api                    kallisto                    mame                        ncview                      pandoc-citeproc             pypy3                       siril                       txr                         xrootd
adplug                      bzt                         dscanner                    flow                        gws                         knot-resolver               math-comp                   netcdf                      parallel                    qcli                        skaffold                    uftp                        yaz
annie                       caffe                       dvm                         fluent-bit                  hadolint                    kubernetes-helm             maxwell                     nexus                       pcl                         qemu                        skafos                      unpaper                     ykpers
apache-drill                cake                        dynare                      fn                          haskell-stack               libbi                       meson                       nfdump                      pdal                        quex                        snakemake                   unrar                       youtube-dl
apktool                     cayley                      elasticsearch@2.4           fobis                       hdf5                        libdill                     mg                          nomad                       percona-server              r                           snapcraft                   urh                         zanata-client
arangodb                    cgal                        elasticsearch@5.6           folly                       heroku                      libebml                     mgba                        octave                      percona-server-mongodb      radare2                     sphinx-doc                  utf8proc
armadillo                   checkbashisms               emscripten                  fq                          hugo                        libetonyek                  mighttpd2                   odpi                        percona-toolkit             rmlint                      sratoolkit                  vagrant-completion
artifactory                 cockroach                   encfs                       freeciv                     ice                         libfaketime                 mikutter                    opencv                      php                         robot-framework             subversion                  valabind
aspectj                     convox                      erlang                      freeling                    inspircd                    libmatio                    minidlna                    opencv@2                    php@5.6                     rocksdb                     swimat                      varnish@4
atari800                    coq                         erlang@18                   freeradius-server           instead                     libmatroska                 mkl-dnn                     openfortivpn                php@7.0                     rom-tools                   tee-clc                     vault
aubio                       corsixth                    etcd                        get-flash-videos            iozone                      libmwaw                     mkvtoolnix                  openimageio                 php@7.1                     rtf2latex2e                 telegraf                    vim@7.4
audacious                   cpanminus                   etsh                        gifski                      jenkins                     libraw                      mlt                         openrtsp                    pianobar                    scale2x                     texmath                     visp

==> Upgrading 1 outdated package, with result:
tmux 2.6 -> 2.7
==> Upgrading tmux
==> Downloading https://homebrew.bintray.com/bottles/tmux-2.7.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring tmux-2.7.high_sierra.bottle.tar.gz
==> Caveats
Example configuration has been installed to:
  /usr/local/opt/tmux/share/tmux

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/tmux/2.7: 10 files, 700.7KB

以前痛い目に合ってたので念のためなくなっているもしくは名前が変更されているFormulaeがないことを確認しておいたほうがいい。

今回の2.7での変更点はパフォーマンス改善などが行われている以下のURLで確認できる。

https://raw.githubusercontent.com/tmux/tmux/2.7/CHANGES

尚、以下の一文

* Pass PWD to new panes as a hint to shells, as well as calling chdir().

が少しに気になっていてペインにディレクトリ階層を遅れたりしないのかなと思ったのだけどどうやってやったらいいのか。 そもそもそういうことでは無いってことなのか、調べてもよくわからなかったので、詳しく知りたいところ。。