Home

Awesome

magicmace

Ideas and code taken from xero's zsh prompt and eriner's prompt.

<img width="706" src="https://zimfw.github.io/images/prompts/magicmace@2.png">

What does it show?

Settings

This theme can be customized with the following environment variables. If the variable is not defined, the respective default value is used.

VariableDescriptionDefault value
COLOR_ROOTRoot-user mace colorred
COLOR_USERNon-root-user mace colorcyan
COLOR_NORMALNormal text colorwhite
COLOR_ERRORError text colorred

Advanced settings

You can customize how the current working directory is shown with the prompt-pwd module settings.

The git indicators can be customized by changing the following git-info module context formats:

Context nameDescriptionDefault format
branchBranch name%b
commitCommit short hash%c...
aheadAhead of remote
behindBehind remote
dirtyDirty state*

Use the following command to override a git-info context format:

zstyle ':zim:git-info:<context_name>' format '<new_format>'

For detailed information about these and other git-info settings, check the git-info documentation.

These advanced settings must be overridden after the theme is initialized.

Requirements

Requires Zim's prompt-pwd module to show the current working directory, and git-info to show git information.