Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 733 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 733 Bytes

Nodeenv

Installation

To use this segment, you need to activate it by adding nodeenv to your P9K_LEFT_PROMPT_ELEMENTS or P9K_RIGHT_PROMPT_ELEMENTS array, depending where you want to show this segment.

Configuration

Color Customization

You can change the foreground and background color of this segment by setting

P9K_NODEENV_FOREGROUND='red'
P9K_NODEENV_BACKGROUND='blue'

Customize Icon

The main Icon can be changed by setting P9K_NODEENV_ICON="my_icon". To change the icon color only, set P9K_NODEENV_ICON_COLOR="red".

Caveat

To avoid Nodeenvs activate command from interfering with Powerlevel9k, you should set NODE_VIRTUAL_ENV_DISABLE_PROMPT=1 in your ~/.zshrc.