https://github.com/kaihaosw/eshell-prompt-extras.git
git clone 'git://github.com/kaihaosw/eshell-prompt-extras.git'
Display extra information and color for your eshell prompt.
This library display remote user, remote host, python virtual
environment info, git branch, git dirty info and git unpushed number
for eshell prompt.
If you want to display the python virtual environment info, you
need to install virtualenvwrapper
.
pip install virtualenvwrapper
It is recommended installed by the ELPA package system.
You could install it by M-x
: with
package-install
: eshell-prompt-extras
.
(eval-after-load 'esh-opt
(progn
(require 'eshell-prompt-extras)
(setq eshell-highlight-prompt nil
eshell-prompt-function 'epe-theme-lambda)))
If you want to display python virtual environment information.
(eval-after-load 'esh-opt
(progn
(require 'virtualenvwrapper)
(venv-initialize-eshell)
(require 'eshell-prompt-extras)
(setq eshell-highlight-prompt nil
eshell-prompt-function 'epe-theme-lambda))))