Interactive Demo & Configurator
On this page you can see how Hometown Prompt responds to context (user, host, Git status, etc).
You can also experiment with customizing your configuration.
TIP
No custom configuration is required. Hometown Prompt works right out of the box.
Custom content and the prompt character are printed with prompt expansion, with PROMPT_SUBST
and PROMPT_PERCENT
. For example, the default prompt char %%
is rendered as %
, and the default custom content %*
is rendered as the 24-hour HH:MM:SS time.
Custom configuration ready for copying and pasting into your .zshrc
:
Context
Terminal
User
Session
Directory
Git ref
Triangular workflow
Git status
Extended Git status
Hometown Prompt Configuration
For detailed documentation of these options, see the Options page.
Content Options
See Options > Content for details.
Layout Options
See Options > Layout for details.
* Git ref info is branch or commit, ahead/behind counts, remote name(s), and tag. See the GIT_PROMPT_KIT_REF
docs.
Git Prompt Kit Configuration
Hometown Prompt is made almost entirely of Git Prompt Kit components. So almost all of configuration —color customization, symbol customization, dimming vs hiding inactive elements, the number of path segments shows, etc— is done by configuring through Git Prompt Kit. (Git Prompt Kit is bundled with Hometown Prompt, so no additional download is necessary.) For detailed documentations of these options, see the Git Prompt Kit's options documentation.
Behavior Options
See Git Prompt Kit's options' documentation for details.
Color Options
See Git Prompt Kit's options' documentation for details.
Content Options
See Git Prompt Kit's options' documentation for details.
Symbol Options
See Git Prompt Kit's options' documentation for details.
GIT_PROMPT_KIT_VERBOSE_DEFAULT_SYMBOLS
is non-zero.