Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/eshell-git-prompt
Some Eshell prompts for Git users
https://github.com/xuchunyang/eshell-git-prompt
eshell
Last synced: about 1 month ago
JSON representation
Some Eshell prompts for Git users
- Host: GitHub
- URL: https://github.com/xuchunyang/eshell-git-prompt
- Owner: xuchunyang
- Created: 2015-09-11T05:57:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T20:02:46.000Z (over 2 years ago)
- Last Synced: 2024-10-16T01:45:55.007Z (3 months ago)
- Topics: eshell
- Language: Emacs Lisp
- Homepage:
- Size: 222 KB
- Stars: 80
- Watchers: 5
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* eshell-git-prompt [[https://melpa.org/#/eshell-git-prompt][https://melpa.org/packages/eshell-git-prompt-badge.svg]] [[https://stable.melpa.org/#/eshell-git-prompt][https://stable.melpa.org/packages/eshell-git-prompt-badge.svg]]
This package provides some themes of Emacs Shell (Eshell) prompt.
** Usage
In Eshell, type ~use-theme~ to list and preview available themes, then
type ~use-theme name~ to choose a theme.[[./img/eshell-git-prompt-usage.png]]
You can also choose a theme in your init file by using
~eshell-git-prompt-use-theme~, then Eshell will use theme at the
startup. For example, put the following in you init file#+BEGIN_SRC emacs-lisp
(eshell-git-prompt-use-theme 'powerline)
#+END_SRC** Recover
(Just in case some theme breaks your Eshell)
To recover the Eshell default prompt, type
#+BEGIN_SRC shell
$ use-theme default
#+END_SRCor ~M-x eshell-git-prompt-use-theme RET default RET~.
** How does this package work?
You can customize Eshell's prompt via something like the following
#+BEGIN_SRC emacs-lisp
(setq eshell-prompt-function (lambda () "A simple prompt." "$ ")
eshell-prompt-regexp "^$ ")
#+END_SRCthis package uses the same way.