Continue maintaining and publishing Michał Nykiel's lambda-pure on npm.
Requires git 2.0.0+ and ZSH 5.0.0+.
$ npm install --global create-lambda-prompt
$ sudo create-lambda-prompt
- 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-prompt
- Copy src/lambda-prompt.zsh to
~/.oh-my-zsh/custom/themes/lambda-prompt.zsh-theme
. - Put
ZSH_THEME="lambda-prompt"
config into~/.zshrc
like 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
#...
#...
PURE_NODE_ENABLED=0 # comes before lambda prompt's launch snippet
autoload -U promptinit
#...
The max execution time of a process before its run time is shown when it exits. Defaults to 5
seconds.
Set PURE_GIT_PULL=0
to prevent Pure from checking whether the current Git remote has been updated.
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.
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.
Defines the prompt symbol. The default value is λ
.
Defines the git down arrow symbol. The default value is ▼
.
Defines the git up arrow symbol. The default value is ▲
.
Defines the git dirty symbol. The default value is ×
.
Set PURE_NODE_ENABLED=0
to not display the NodeJS version.