Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/bluedragon1221/zsh-lambda-prompt

My git prompt
https://github.com/bluedragon1221/zsh-lambda-prompt

Last synced: about 2 months ago
JSON representation

My git prompt

Lists

README

        

# Lambda Prompt
My prefered zsh prompt

![Prompt](./images/prompt.png)

## Installation
Install `bluedragon1221/zsh-lambda-prompt` with your favorite zsh-plugin manager.

Then, add the following line to your `~/.zshrc`:
```zsh
prompt lambda
```

## Configuration
Currently, there are two configuration options.

`$CURSOR_BEAM` determines if you want the prompt to override the cursor shape.
This will also keep the cursor a beam after you open a program that changes it (like neovim).
`1` to enable, or `0` to disable

`$DIR_HASHES` some default [named directories](https://unix.stackexchange.com/questions/723248/how-can-one-modify-the-named-directory-hash-table-by-creating-appropriate-shell).
`1` to enable, or `0` to disable

| Directory | Substitution |
|-----------|------------------------|
| `~cfg` | `~/.config` |
| `~pic` | `~/Pictures` |
| `~doc` | `~/Documents` |
| `~dl` | `~/Downloads` |
| `~p` | `~/projects` |
| `~py` | `~/projects/python` |
| `~rs` | `~/projects/rust` |

`$GIT_STATUS` enable or disable git status on the right prompt.
`1` to enable or `0` to disable

![Git Status](./images/git_rprompt.png)

`$PROMPT_CHAR` Change the prompt character.
`λ` is the default, but anything is accepted.

`$ENABLE_SUDO_PROMPT` This prompt has the ability to override the default sudo prompt.
`1` to enable or `0` to disable

![Sudo Prompt](./images/sudo_prompt.jpg)

## Screenshots
Deals with long paths gracefully:
![Long Path](./images/long_path.png)

Configuration Options:
![Customizable](./images/customizable.png)