create-lambda-prompt
v0.1.1
Published
Create Simple ZSH prompt with Node.js version
Maintainers
Readme
Continue maintaining and publishing Michał Nykiel's lambda-pure on npm.
Installation
Requires git 2.0.0+ and ZSH 5.0.0+.
Automatic method
$ npm install --global create-lambda-prompt
$ sudo create-lambda-promptManual method
- Copy src/lambda-prompt.zsh and src/async.zsh to
/usr/local/share/zsh/site-functions/. - Put the following launch snippet at the end of
~/.zshrc.
#...
autoload -U promptinit
promptinit
prompt lambda-promptManual integration
oh-my-zsh
- Copy src/lambda-prompt.zsh to
~/.oh-my-zsh/custom/themes/lambda-prompt.zsh-theme. - Put
ZSH_THEME="lambda-prompt"config into~/.zshrclike below.
ZSH_THEME="lambda-prompt" # comes before sourcing oh-my-zsh.sh
source $ZSH/oh-my-zsh.sh # comes before the launch snippet
autoload -U promptinit
#...Options
#...
PURE_NODE_ENABLED=0 # comes before lambda prompt's launch snippet
autoload -U promptinit
#...PURE_CMD_MAX_EXEC_TIME
The max execution time of a process before its run time is shown when it exits. Defaults to 5 seconds.
PURE_GIT_PULL
Set PURE_GIT_PULL=0 to prevent Pure from checking whether the current Git remote has been updated.
PURE_GIT_UNTRACKED_DIRTY
Set PURE_GIT_UNTRACKED_DIRTY=0 to not include untracked files in dirtiness check. Only really useful on extremely huge repos like the WebKit repo.
PURE_GIT_DELAY_DIRTY_CHECK
Time in seconds to delay git dirty checking for large repositories (git status takes > 2 seconds). The check is performed asynchronously, this is to save CPU. Defaults to 1800 seconds.
PURE_PROMPT_SYMBOL
Defines the prompt symbol. The default value is λ.
PURE_GIT_DOWN_ARROW
Defines the git down arrow symbol. The default value is ▼.
PURE_GIT_UP_ARROW
Defines the git up arrow symbol. The default value is ▲.
PURE_GIT_DIRTY
Defines the git dirty symbol. The default value is ×.
PURE_NODE_ENABLED
Set PURE_NODE_ENABLED=0 to not display the NodeJS version.
