Skip to main content

Generate customised shell prompts (for ZSH)

Project description

Advanced shell prompts for ZSH.

PyPI PyPI - License


Install it:

pip install --user makeprompt

Put this in your ~/.zshrc:

autoload -Uz promptinit
prompt off

PROMPT='$( ~/.local/bin/makeprompt )'


  • Display user/hostname/path using truecolor (24-bit) colors
  • 8-bit color fallbacks, for terminals that don’t support truecolor
  • git repository status information (branch, dirty)
  • Python enabled virtualenv information
  • Background (stopped) jobs count


The MAKEPROMPT_COLORS environment variable can be used to change colors of different parts of the prompt.

Format is similar to LS_COLORS, for example:

export MAKEPROMPT_COLORS='user=38;2;56;142;60:host=38;2;198;255;0'

A utility script is provided to conveniently generate TrueColor paletters from HTML hex colors.

For example:

python -m makeprompt.utils.make_truecolor_palette user='#808' host='#f0f' path='#ff0'

you can also use this in your shell configuration:

eval $( python -m makeprompt.utils.make_truecolor_palette ... )


To test a development version, checked out in ~/Projects/makeprompt:

PROMPT=’$( PYTHONPATH=”$HOME”/Projects/makeprompt python -m makeprompt )’

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for makeprompt, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size makeprompt-0.3-py3-none-any.whl (8.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size makeprompt-0.3.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page