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
- Host: GitHub
- URL: https://github.com/bluedragon1221/zsh-lambda-prompt
- Owner: bluedragon1221
- License: mit
- Created: 2023-11-17T20:17:03.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-03-20T19:23:49.000Z (3 months ago)
- Last Synced: 2024-03-20T20:40:48.719Z (3 months ago)
- Language: Shell
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - lambda (bluedragon1221) - Includes decorators for current directory and `git` status. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - lambda (bluedragon1221) - Includes decorators for current directory and `git` status. (Themes / ZSH on Windows)
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)