zshで前のディレクトリに簡単に戻る方法
ターミナルで cd
して「あ〜前のディレクトリに戻りたい〜」ってことよくあるじゃないですか。
cd -1
とかでも戻れますが、もっとブラウザの戻るみたいな感じでライトに戻りたいじゃないですか。
それを可能にするのがこういう設定です。
.zshrc
zle -N dir_forward
zle -N dir_back
bindkey '[1;6C' dir_forward # 私の環境ではCtrl-Shift-Left
bindkey '[1;6D' dir_back # 私の環境ではCtrl-Shift-Left
これでブラウザみたいな感じでディレクトリを行き来することができます
Author And Source
この問題について(zshで前のディレクトリに簡単に戻る方法), 我々は、より多くの情報をここで見つけました https://qiita.com/yutkat/items/b42f7bf58c2e97de2e32著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .