GitXplorerGitXplorer
K

khai-powerlevel9k-config

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6afae746a2da3fc48b2f4754dbb471407a0f07bb

Format

KKSXGitHub committed 4 years ago
Unverified
200535e08088bffe204d8aa35caf561d3ea8fb48

Disable battery plugin

KKSXGitHub committed 4 years ago
Unverified
023397390d1d298848629b433903472cc89714cb

Fix font name

KKSXGitHub committed 4 years ago
Unverified
16f6fe7d3ae4bf38741b7fe1b856b168e9013ddc

Forgot to also remove $(npm --version)

KKSXGitHub committed 7 years ago
Unverified
52dfc343ba3cd6534f6d80bdefbbea160db47d26

Merge branch 'speed'

KKSXGitHub committed 7 years ago
Unverified
7f93f6e6ace0ff5980137d5f1afeba619e9ef83d

Remove nodejs segments to speed things up

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.