85

GitHub - manateelazycat/aweshell: Awesome shell extension eshell with wonderful...

 5 years ago
source link: https://github.com/manateelazycat/aweshell
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

What is aweshell?

I created multi-term.el and use it many years.

Now I'm a big fans of eshell.

So I wrote aweshell.el to extend eshell with these features:

  1. Create and manage multiple eshell buffers.
  2. Add some useful commands, such as: clear buffer, toggle sudo etc.
  3. Display extra information and color like zsh, powered by eshell-prompt-extras
  4. Add Fish-like history autosuggestions, powered by esh-autosuggest
  5. Validate and highlight command before post to eshell.
  6. Fix error command not found in MacOS.

Installation

Put aweshell.el, esh-autosuggest.el, eshell-prompt-extras.el, exec-path-from-shell.el to your load-path. The load-path is usually ~/elisp/. It's set in your ~/.emacs like this:

(add-to-list 'load-path (expand-file-name "~/elisp"))
(require 'aweshell)

Bind your favorite key to functions:

aweshell-new
aweshell-next
aweshell-prev
aweshell-clear-buffer
aweshell-sudo-toggle

Customize

Customize variables below by:

M-x customize-group RET aweshell RET
aweshell-complete-selection-key
aweshell-clear-buffer-key
aweshell-sudo-toggle-key

Customize prompt as directed in eshell-prompt-extras' README.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK