- Shell: ZSH
- ZSH Plugin: Powerline
- ZSH Theme: Powerlevel9k
- Terminal Fonts: Powerline Nerd Fonts
- Clone this repo
- Add
source $repo/.powerlevel9k.zsh
to your.zshrc
It does literally nothing.
When file package.json
is present, show node/npm/package versions/icons
- Node.js ≥ 7.0.0
- NPM (optional)
Enable/Disable: Their values are true
, false
or in version format (x.y.z
, e.g. 1.2.3
). If true
, execute to get version number (might be slow in case of npm); If false
, skip it; If matches version format, show variable's value without execution (might be useful to show npm version without waiting to execute npm --version
)
POWERLEVEL9K_CUSTOM_PACKAGE_JSON_NODEVER
POWERLEVEL9K_CUSTOM_PACKAGE_JSON_NPMVER
POWERLEVEL9K_CUSTOM_PACKAGE_JSON_PACKAGEVER
Icons: Specify icons (e.g.
,
,
), set to empty (''
) to hide them
POWERLEVEL9K_NODE_ICON
POWERLEVEL9K_NPM_ICON
POWERLEVEL9K_PACKAGE_ICON
Format: How to show segment
POWERLEVEL9K_CUSTOM_PACKAGE_JSON_DELIMITER
is delimiter between sub-segmentsPOWERLEVEL9K_CUSTOM_PACKAGE_JSON_COMPLETE_TEMPLATE
is used for sub-segment when icon is not emptyPOWERLEVEL9K_CUSTOM_PACKAGE_JSON_PARTIAL_TEMPLATE
is used for sub-segment when icon is empty
Location: How to find package.json
location
POWERLEVEL9K_CUSTOM_PACKAGE_JSON_CHECK_BY_REPO
: Iftrue
, only consider git repos (directories that has.git
) to be possible candidates, otherwise, accept all foldersPOWERLEVEL9K_CUSTOM_PACKAGE_JSON_CHECK_PARENT
: If set toinf
, check all parent candidates if current candidate (a.k.a repo/directory which is/contains current working directory) fails. If set to a numbern
, only checkn
parent candidates. If set to0
, don't check any parent candidate.