{"id":14982921,"url":"https://github.com/marszall87/lambda-pure","last_synced_at":"2025-10-03T03:30:29.902Z","repository":{"id":12984320,"uuid":"73229310","full_name":"marszall87/lambda-pure","owner":"marszall87","description":"Pretty, minimal and fast ZSH prompt, with NodeJS version","archived":false,"fork":true,"pushed_at":"2022-06-16T01:00:39.000Z","size":577,"stargazers_count":119,"open_issues_count":2,"forks_count":35,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-24T10:33:28.117Z","etag":null,"topics":["git","lambda","nodejs","prompt","shell-theme","terminal","theme","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sindresorhus/pure","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marszall87.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-08T21:38:31.000Z","updated_at":"2024-09-23T19:40:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marszall87/lambda-pure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marszall87%2Flambda-pure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marszall87%2Flambda-pure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marszall87%2Flambda-pure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marszall87%2Flambda-pure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marszall87","download_url":"https://codeload.github.com/marszall87/lambda-pure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867875,"owners_count":16554375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","lambda","nodejs","prompt","shell-theme","terminal","theme","zsh"],"created_at":"2024-09-24T14:06:25.191Z","updated_at":"2025-10-03T03:30:29.584Z","avatar_url":"https://github.com/marszall87.png","language":"Shell","readme":"# λ Pure\n\n\u003e Pretty, minimal and fast ZSH prompt based on Pure\n\n\u003cimg src=\"screenshot.png\" width=\"864\"\u003e\n\n\n## Overview\n\nMost prompts are cluttered, ugly and slow. I wanted something visually pleasing that stayed out of my way.\n\n### Why?\n\n- Comes with the `λ` prompt character. Because lambdas are cool.\n- Shows `git` branch and whether it's dirty (with a `×`).\n- Indicates when you have unpushed/unpulled `git` commits with up/down triangles. *(Check is done asynchronously!)*\n- Shows current NodeJS version on the right side. *(Check is done asynchronously!)*\n- Prompt character turns red if the last command didn't exit with `0`.\n- Command execution time will be displayed if it exceeds the set threshold.\n- Username and host only displayed when in an SSH session.\n- Shows the current path in the title and the [current folder \u0026 command](screenshot-title-cmd.png) when a process is running.\n\n## Install\n\nCan be installed with `npm` or manually. Requires git 2.0.0+ and ZSH 5.0.0+.\n\n### npm\n\n```console\n$ npm install --global lambda-pure-prompt\n```\n\nThat's it. Skip to [Getting started](#getting-started).\n\n### Manually\n\n1. Either…\n  - Clone this repo\n  - add it as a submodule, or\n  - just download `lambda-pure.zsh` and `async.zsh`\n\n2. Symlink `lambda-pure.zsh` to somewhere in [`$fpath`](https://www.refining-linux.org/archives/46-ZSH-Gem-12-Autoloading-functions.html) with the name `prompt_lambda-pure_setup`.\n\n3. Symlink `async.zsh` in `$fpath` with the name `async`.\n\n#### Example\n\n```console\n$ ln -s \"$PWD/lambda-pure.zsh\" /usr/local/share/zsh/site-functions/prompt_lambda-pure_setup\n$ ln -s \"$PWD/async.zsh\" /usr/local/share/zsh/site-functions/async\n```\n*Run `echo $fpath` to see possible locations.*\n\nFor a user-specific installation (which would not require escalated privileges), simply add a directory to `$fpath` for that user:\n\n```sh\n# .zshenv or .zshrc\nfpath=( \"$HOME/.zfunctions\" $fpath )\n```\n\nThen install the theme there:\n\n```console\n$ ln -s \"$PWD/lambda-pure.zsh\" \"$HOME/.zfunctions/prompt_lambda-pure_setup\"\n$ ln -s \"$PWD/async.zsh\" \"$HOME/.zfunctions/async\"\n```\n\n\n## Getting started\n\nInitialize the prompt system (if not so already) and choose `lambda-pure`:\n\n```sh\n# .zshrc\nautoload -U promptinit; promptinit\nprompt lambda-pure\n```\n\n\n## Options\n\n### `PURE_CMD_MAX_EXEC_TIME`\n\nThe max execution time of a process before its run time is shown when it exits. Defaults to `5` seconds.\n\n### `PURE_GIT_PULL`\n\nSet `PURE_GIT_PULL=0` to prevent Pure from checking whether the current Git remote has been updated.\n\n### `PURE_GIT_UNTRACKED_DIRTY`\n\nSet `PURE_GIT_UNTRACKED_DIRTY=0` to not include untracked files in dirtiness check. Only really useful on extremely huge repos like the WebKit repo.\n\n### `PURE_GIT_DELAY_DIRTY_CHECK`\n\nTime in seconds to delay git dirty checking for large repositories (git status takes \u003e 2 seconds). The check is performed asynchronously, this is to save CPU. Defaults to `1800` seconds.\n\n### `PURE_PROMPT_SYMBOL`\n\nDefines the prompt symbol. The default value is `λ`.\n\n### `PURE_GIT_DOWN_ARROW`\n\nDefines the git down arrow symbol. The default value is `▼`.\n\n### `PURE_GIT_UP_ARROW`\n\nDefines the git up arrow symbol. The default value is `▲`.\n\n### `PURE_GIT_DIRTY`\n\nDefines the git dirty symbol. The default value is `×`.\n\n### `PURE_NODE_ENABLED`\n\nSet `PURE_NODE_ENABLED=0` to not display the NodeJS version.\n\n## Example\n\n```sh\n# .zshrc\n\nautoload -U promptinit; promptinit\n\n# optionally define some options\nPURE_CMD_MAX_EXEC_TIME=10\n\nprompt lambda-pure\n```\n\n## Integration\n\n### [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)\n\n1. Symlink (or copy) `lambda-pure.zsh` to `~/.oh-my-zsh/custom/themes/lambda-pure.zsh-theme`.\n2. Set `ZSH_THEME=\"lambda-pure\"` in your `.zshrc` file.\n\n### [antigen](https://github.com/zsh-users/antigen)\n\nUpdate your `.zshrc` file with the following two lines (order matters). Do not use the `antigen theme` function.\n\n```console\n$ antigen bundle mafredri/zsh-async\n$ antigen bundle marszall87/lambda-pure\n```\n\n### [antibody](https://github.com/getantibody/antibody)\n\nUpdate your `.zshrc` file with the following two lines (order matters):\n\n```console\n$ antibody bundle mafredri/zsh-async\n$ antibody bundle marszall87/lambda-pure\n```\n\n### [zgen](https://github.com/tarjoilija/zgen)\n\nUpdate your `.zshrc` file with the following two lines (order matters):\n\n```console\n$ zgen load mafredri/zsh-async\n$ zgen load marszall87/lambda-pure\n```\n\n## License\n\nMIT © [Michał Nykiel](https://github.com/marszall87)\nbased on [Pure by Sindre Sorhus](https://github.com/sindresorhus/pure)\n","funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarszall87%2Flambda-pure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarszall87%2Flambda-pure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarszall87%2Flambda-pure/lists"}