GitXplorerGitXplorer
K

khai-powerlevel9k-config

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
fb7ced2bb7898a17f28aa0f79509fe637a8cc9e5

Update prompt prefix variable name

KKSXGitHub committed 7 years ago
Unverified
4c40c5dca78e545da3dafc19b7703d9432933ad3

Define mode

KKSXGitHub committed 7 years ago
Unverified
8d9afc654f571f075dc92ce235619ee7848e0521

Add subfolder

KKSXGitHub committed 7 years ago
Unverified
bd459e1ed0e7e0997a20b36b50b7ed9ad31f75c7

Correct requirements/links

KKSXGitHub committed 7 years ago
Unverified
47d95ff9f80f5d14278690bfda5107bfe649d367

Add Requirements for custom_package_json

KKSXGitHub committed 7 years ago
Unverified
5539489210894a4127db1f399187df66158f59b2

Fix typo

KKSXGitHub committed 7 years ago

README

The README file for this repository.

Khải's powerlevel9k configuration

Preview

Preview

Requirements

Installation

  1. Clone this repo
  2. Add source $repo/.powerlevel9k.zsh to your .zshrc

Extra Features

custom_nothing

It does literally nothing.

custom_package_json

When file package.json is present, show node/npm/package versions/icons

Requirements

  • Node.js ≥ 7.0.0
  • NPM (optional)

Example

Preview for custom_package_json

Environment Variables

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-segments
  • POWERLEVEL9K_CUSTOM_PACKAGE_JSON_COMPLETE_TEMPLATE is used for sub-segment when icon is not empty
  • POWERLEVEL9K_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: If true, only consider git repos (directories that has .git) to be possible candidates, otherwise, accept all folders
  • POWERLEVEL9K_CUSTOM_PACKAGE_JSON_CHECK_PARENT: If set to inf, check all parent candidates if current candidate (a.k.a repo/directory which is/contains current working directory) fails. If set to a number n, only check n parent candidates. If set to 0, don't check any parent candidate.