<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inaz2</author_name>
  <author_url>https://blog.hatena.ne.jp/inaz2/</author_url>
  <blog_title>ももいろテクノロジー</blog_title>
  <blog_url>https://inaz2.hatenablog.com/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>こういうの、設定してもだいたい忘れて使わなくなるのだけど、定着したものがいくつかあるので書いてみる。 l: ファイルにはless、ディレクトリにはlsを実行する 一つのコマンドで両方できるようにしておくと、判断の手間が省けて便利。 l() { # if the argument is a single file or stdin is pipe if [[ ($# -eq 1 &amp;&amp; -f &quot;$1&quot;) || (-p /dev/stdin) ]]; then ${PAGER:-less -R} &quot;$@&quot; else ls -alF --color=auto &quot;$@&quot; fi } ディレクトリの中身を見…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaz2.hatenablog.com%2Fentry%2F2013%2F12%2F22%2F151307&quot; title=&quot; bashrcに書いておくと便利なショートカット関数3つ - ももいろテクノロジー&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>2013-12-22 15:13:07</published>
  <title> bashrcに書いておくと便利なショートカット関数3つ</title>
  <type>rich</type>
  <url>https://inaz2.hatenablog.com/entry/2013/12/22/151307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
