<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://tm.root-n.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Tipsというかメモ unix:zsh</title>
        <description></description>
        <link>https://tm.root-n.com/</link>
        <lastBuildDate>Tue, 18 Nov 2025 21:12:24 +0900</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>https://tm.root-n.com/lib/images/favicon.ico</url>
            <title>Tipsというかメモ</title>
            <link>https://tm.root-n.com/</link>
        </image>
        <item>
            <title>Unix :: zshとbashの変数展開の違い</title>
            <link>https://tm.root-n.com/unix:zsh:diff_zsh_bash</link>
            <description>変数 $var の値の先頭2文字目から3文字を切り出す

bash の挙動
% bash
$ var=12345; echo ${var:1:3}
234期待通りの結果



zsh の挙動
% zsh
% var=12345; echo ${var:1:3}
zsh: unrecognized modifier `1'おこられる。記法が違うらしい。</description>
        <category>unix:zsh</category>
            <pubDate>Sun, 16 Mar 2008 22:48:36 +0900</pubDate>
        </item>
        <item>
            <title>zsh :: cd する時の TAB 補完で、不要なディレクトリ名が補完されるのを無 ...</title>
            <link>https://tm.root-n.com/unix:zsh:disable_cdable_vars</link>
            <description>zsh で cd する時の TAB 補完で、カレントディレクトリに存在しないディレクトリの名前が候補一覧に出てきて、``キーっ′′となった事はないだろうか。

私はあります。

多い時では週４回くらい、少なくても３週間に１回は``キーっ′′となります。</description>
        <category>unix:zsh</category>
            <pubDate>Thu, 26 Oct 2017 10:52:57 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / HISTFILE , HISTSIZE , SAVEHIST</title>
            <link>https://tm.root-n.com/unix:zsh:histfile_histsize_savehist</link>
            <description>.zshrc に以下の設定を記述することで「コマンドの履歴機能」が有効になります。

※. HISTFILE のみ必須です。


export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=1000
export SAVEHIST=100000


	*  HISTFILE
		*  履歴ファイルの保存先。</description>
        <category>unix:zsh</category>
            <pubDate>Mon, 11 May 2009 21:11:33 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / zsh-5.0.2 のインストール</title>
            <link>https://tm.root-n.com/unix:zsh:install_5_0_2</link>
            <description>マルチバイト対応の 5.0.2 のインストールです。(マルチバイトは、4.3.0以降で対応されています)

インストール


% wget &quot;http://sourceforge.net/projects/zsh/files/zsh/5.0.2/zsh-5.0.2.tar.gz&quot;
% tar zxvf zsh-5.0.2.tar.gz
% cd zsh-5.0.2
% ./configure --enable-multibyte --enable-locale # エラーが出る場合は「./configure でのエラー」を参照
% sudo make install
% zsh --version                                                                                                                  
zsh 5.0.2 (x86_64-unknown-linux-gnu)
% sudo vi /etc/shells
　⇒　末尾に「/usr/local/bin/zs…</description>
        <category>unix:zsh</category>
            <pubDate>Mon, 01 Sep 2014 18:06:11 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / zsh-5.7.1 のインストール</title>
            <link>https://tm.root-n.com/unix:zsh:install_5_7_1</link>
            <description>マルチバイト対応の 5.7.1 のインストールです。(マルチバイトは、4.3.0以降で対応されています)

インストール


% wget https://sourceforge.net/projects/zsh/files/zsh/5.7.1/zsh-5.7.1.tar.xz/download -O zsh-5.7.1.tar.xz
% tar xvf zsh-5.7.1.tar.xz
% cd zsh-5.7.1
% ./configure --enable-multibyte --enable-locale   # エラーが出る場合は「./configure でのエラー」を参照
% sudo make install
% zsh --version                                                                                                                  
zsh 5.7.1 (x86_64-pc-linux-gnu)
% sudo vi /etc/shells
…</description>
        <category>unix:zsh</category>
            <pubDate>Thu, 12 Sep 2019 17:03:46 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / 再帰的にディレクトリを作る</title>
            <link>https://tm.root-n.com/unix:zsh:recursive_dir</link>
            <description>% mkdir -p {0..3}/{0..3}
% find . -type d
.
./0
./0/0
./0/1
./0/2
./0/3
./1
./1/0
./1/1
./1/2
./1/3
./2
./2/0
./2/1
./2/2
./2/3
./3
./3/0
./3/1
./3/2
./3/3</description>
        <category>unix:zsh</category>
            <pubDate>Sun, 16 Mar 2008 22:48:37 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / zsh-syntax-highlighting を導入してコマンドラインでシンタックス ...</title>
            <link>https://tm.root-n.com/unix:zsh:zsh_syntax_highlighting</link>
            <description>「コマンドラインでシンタックスハイライト？」という方は、動画をご覧ください。








以下、zsh-syntax-highlighting の設置と設定

	*  zsh-syntax-highlighting の設置


% mkdir ~/.zsh
% git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting</description>
        <category>unix:zsh</category>
            <pubDate>Sat, 13 Apr 2013 17:42:51 +0900</pubDate>
        </item>
        <item>
            <title>Unix :: zsh / .zshrcの必須設定</title>
            <link>https://tm.root-n.com/unix:zsh:zshrc</link>
            <description>ミスタイプによる意図しないログアウト防止


setopt IGNOREEOF



Ctrl-D でログアウトさせない(ミスタイプによる意図しないログアウト防止)

ただし、10回連続で Ctrl-D すると ログアウトする</description>
        <category>unix:zsh</category>
            <pubDate>Wed, 16 Jan 2013 19:51:45 +0900</pubDate>
        </item>
    </channel>
</rss>
