Metadata-Version: 2.4
Name: wj-prompt
Version: 1.0.0b1
Summary: Installs a WaterJuice shell prompt into your bash or zsh run-command file
Author: WaterJuice
License-Expression: Unlicense
License-File: LICENSE
Keywords: bash,prompt,ps1,shell,waterjuice,zsh
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# wj-prompt

A WaterJuice project.

A small CLI that installs a WaterJuice shell prompt into your `bash` or `zsh`
run-command file. The prompt shows the host name and working directory in cyan,
followed by a green `$` for normal users (or a red `#` for root):

```
myhost:~/code/wj-prompt $
```

The prompt line is written inside a clearly marked block, so re-running updates
it in place and `uninstall` removes it cleanly without disturbing the rest of
your rc file.

## Usage

```bash
# Install (or update) the prompt for your current shell
uvx wj-prompt

# Preview the change without writing anything
uvx wj-prompt --dry-run

# Target a specific shell or rc file
uvx wj-prompt --shell bash
uvx wj-prompt --rc-file ~/.bashrc

# Remove the prompt again
uvx wj-prompt uninstall
```

After installing, restart your shell or `source` the rc file to apply the
change to the current session.

## What gets installed

`zsh` (`~/.zshrc`):
```zsh
PROMPT='%F{cyan}%m%f:%F{cyan}%~%f %(!.%F{red}#%f.%F{green}$%f) '
```

`bash` (`~/.bashrc`):
```bash
PS1='\[\e[36m\]\h\[\e[0m\]:\[\e[36m\]\w\[\e[0m\] \[\e[$((EUID?32:31))m\]\$\[\e[0m\] '
```

Each is wrapped in a managed block:
```
# >>> wj-prompt >>>
# Managed by wj-prompt. Re-run `wj-prompt` to update; `wj-prompt uninstall` to remove.
...
# <<< wj-prompt <<<
```

## Installation

```bash
# Run directly without installing
uvx wj-prompt

# Or install the tool
uv tool install wj-prompt
pip install wj-prompt
```

## Development

```bash
# Set up development environment
make dev

# Run linting and type checks
make check

# Format code
make format

# Build wheel
make build
```

## License

Released into the public domain under the [Unlicense](LICENSE).
