https://github.com/lewis6991/fancy-prompt
https://github.com/lewis6991/fancy-prompt
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lewis6991/fancy-prompt
- Owner: lewis6991
- Created: 2016-06-03T16:35:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-30T11:47:08.000Z (9 months ago)
- Last Synced: 2025-02-28T10:44:33.625Z (8 months ago)
- Language: Shell
- Size: 93.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Features
* Provides a nice colourful prompt.
* Gives you basic information about your git checkout.
* Supports bash, csh and tcsh.
* Asynchronous! (zsh only)
* Rename Tmux windows to CWD
* OSC133 Support# Screenshot

# Installation
### Zsh
Requires mafredri/zsh-async.
#### Using [zimfw](https://github.com/zimfw/zimfw)
Add the following to your `.zimrc`:
```zsh
zmodule mafredri/zsh-async --name async
zmodule lewis6991/fancy-prompt
```Then:
```zsh
zimfw install
```#### Manually
Add the following to your `.zshrc`:
```zsh
source path/to/fancy_prompt/prompt.zsh```
### Bash
```bash
./install.sh
```
Add the following to your `.bashrc`:
```bash
export PROMPT_COMMAND=__prompt_commandfunction __prompt_command() {
local exit_code=$?
PS1=$(~/.prompt bash $exit_code)
}
```### Csh/Tcsh
```bash
./install.sh
```
Add the following to your `.cshrc`:
```csh
alias precmd 'set prompt="`~/.prompt csh $?`"'
```# Customisation
### Timeout
```bash
FANCY_PROMPT_TIMEOUT=3
```
Timeout for commands fetching SCM updates.### Symbols
```bash
FANCY_PROMPT_USE_SYMBOLS=1
```
Use powerline symbols. See [powerline/fonts](https://github.com/powerline/fonts).