https://github.com/alice1017/prompt-changer
The prompt-changer is a command line tool for changing zsh prompt style.
https://github.com/alice1017/prompt-changer
Last synced: about 2 months ago
JSON representation
The prompt-changer is a command line tool for changing zsh prompt style.
- Host: GitHub
- URL: https://github.com/alice1017/prompt-changer
- Owner: alice1017
- Created: 2018-06-06T13:46:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T02:20:46.000Z (almost 7 years ago)
- Last Synced: 2025-02-15T08:25:56.689Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prompt-changer
The **prompt-changer** provides a command line tool for changing **zsh prompt**.
[](https://asciinema.org/a/187883)
## Installation
```
$ git clone https://github.com/alice1017/prompt-changer.git
$ cd prompt-changer
$ sudo install -v -m 755 bin/prompt-changer /usr/local/bin/
```## Prepare for use
```
$ mkdir -p ~/.zsh
$ echo "source ~/.zsh/prompt.zsh" >> ~/.zshrc
```The prompt-changer can't change the prompt **without** `~/.zsh` directory.
Because the prompt-changer creates a **symlink** to zsh script at `~/.zsh/prompt.zsh`And, you need to **insert the 'source' sentence** to`.zshrc` for loading `~/.zsh/prompt.zsh`
## Usage
```
usage: prompt-changer [-h] [-l] [-c] [-t STYLE] [style]The prompt-changer provides a command line tool for changing zsh prompt.
positional arguments:
style The prompt style name.optional arguments:
-h, --help show this help message and exit
-l, --list Display the prompt styles list
-c, --current Output the current prompt style
-t STYLE, --try STYLE
You can try a prompt style in new shell process
```