三日坊主ってレベルじゃないけど気にしない! Eshell は Emacs 上に実装されたシェルで,Emacs lisp で自由に拡張することが可能です. が,デフォルトだと zsh などの他のシェルと比較して機能が少なく,そのまま使うには結構不便です. 機能がないなら実装すればいいじゃない! というわけで,他のシェルの素敵機能を Eshell 上に実装していくことにしました. history-beginning-search-forward (backward) って何? これは zsh で使える素敵機能です (bash 等でも使えるのかは知りません). 例えば,プロンプトに以下を入力したとします(_ は現在のカーソル位置). $ sudo _ この状態で history-beginning-search-forward や history-beginning-search-backwar