https://github.com/docwhat/p9k
prototype for reworking powershell9k prompt
https://github.com/docwhat/p9k
Last synced: about 1 year ago
JSON representation
prototype for reworking powershell9k prompt
- Host: GitHub
- URL: https://github.com/docwhat/p9k
- Owner: docwhat
- License: mit
- Created: 2017-07-28T05:38:02.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T02:03:05.000Z (over 5 years ago)
- Last Synced: 2025-02-15T21:17:56.185Z (over 1 year ago)
- Language: Shell
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Prototyping ideas for PowerLevel9K
==================================
This repo is about prototyping some ideas for [PowerLevel9k](https://github.com/bhilburn/powerlevel9k); a configurable prompt system.
## Usage
You have several approaches, depending on your plugin manager or preference.
The easiest is just `source ./p9k.theme`. This can be re-run and will flush any cached p9k functions.
Alternatively, add the `functions/` directory to your `fpath` and use the normal prompt system to load it.
Configuration
-------------
There are three array variables that you can set:
- `p9k_left_segments` — The left prompt (aka `$PROMPT` or `$PS1`).
- `p9k_right_segments` — The right prompt (aka `$RPROMPT`).
- `p9k_xtrace_segments` — The `XTRACE` prompt; activated via `set -x`.
Each element in the segments arrays is of the form `::::`:
- `` The name of the segment. The complete list can be found via `functions/p9k_segment_`.
- `` The foreground color. Use the color names or the numbers from 0 to 255 if your terminal has 256 colors.
- `` The background color. Use the color names or the numbers from 0 to 255 if your terminal has 256 colors.