<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nonylene</author_name>
  <author_url>https://blog.hatena.ne.jp/nonylene/</author_url>
  <blog_title>Unyablog.</blog_title>
  <blog_url>https://nonylene.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>tmux の if-shell ではシェルコマンドの結果に応じて実行するコマンドを変更できる。 今までここにバージョンによって設定を変化させるように書いていたが上手く動いていない時があった。 if-shell &quot;[[ `tmux -V` =~ 2.[1-9]$ ]]&quot; &quot;set -g mouse on&quot; 理由 tmux は sh -c でシェル部を実行しているため、 sh の実装が bash でない場合は [[ が使えない。*1 tmux/job.c at ddffda4da55e2d4040c981bfb5257c4f7281000f · tmux/tmux · GitHub Fix [ な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnonylene.hatenablog.jp%2Fentry%2F2018%2F11%2F12%2F005849&quot; title=&quot;tmux の if-shell は sh で実行される - Unyablog.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-12 00:58:49</published>
  <title>tmux の if-shell は sh で実行される</title>
  <type>rich</type>
  <url>https://nonylene.hatenablog.jp/entry/2018/11/12/005849</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
