<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitonatsu</author_name>
  <author_url>https://blog.hatena.ne.jp/hitonatsu/</author_url>
  <blog_title>ひと夏の技術</blog_title>
  <blog_url>https://tech-1natsu.hatenablog.com/</blog_url>
  <categories>
    <anon>メモ</anon>
  </categories>
  <description>dotfilesの中にあるconfig書いているときに、「ビルトインじゃないコマンドを持っている環境の場合にこうしたい」みたいな気持ちになったのだけど、fishでいまいち書き方がわからなかったので調べた。 if…? if構文がこれなんだけど、『コマンドがあるとき』のとり方がわからなかった。 fishshell.com issueとかstackoverflowみてたら古めのIssueがあった。 type -q らしい。 Best way to check if command is available? · Issue #1774 · fish-shell/fish-shell · GitHub…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-1natsu.hatenablog.com%2Fentry%2F2022%2F05%2F04%2F160534&quot; title=&quot;fishシェルで特定のコマンドがあるときのif文を書く - ひと夏の技術&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>2022-05-04 16:05:34</published>
  <title>fishシェルで特定のコマンドがあるときのif文を書く</title>
  <type>rich</type>
  <url>https://tech-1natsu.hatenablog.com/entry/2022/05/04/160534</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
