{"id":19413090,"url":"https://github.com/joknarf/nerdp","last_synced_at":"2026-02-01T20:12:40.724Z","repository":{"id":260160531,"uuid":"861231617","full_name":"joknarf/nerdp","owner":"joknarf","description":"Nerd powerline prompt for bash/ksh/zsh","archived":false,"fork":false,"pushed_at":"2026-01-29T23:43:10.000Z","size":87,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-30T17:55:18.109Z","etag":null,"topics":["nerd-fonts","shell-plugin","shell-prompt"],"latest_commit_sha":null,"homepage":"https://joknarf.github.io/joknarf-tools","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joknarf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-22T11:10:29.000Z","updated_at":"2026-01-29T23:43:14.000Z","dependencies_parsed_at":"2024-10-29T23:09:56.016Z","dependency_job_id":null,"html_url":"https://github.com/joknarf/nerdp","commit_stats":null,"previous_names":["joknarf/nerdp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joknarf/nerdp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fnerdp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fnerdp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fnerdp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fnerdp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joknarf","download_url":"https://codeload.github.com/joknarf/nerdp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joknarf%2Fnerdp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28988634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T18:17:03.387Z","status":"ssl_error","status_checked_at":"2026-02-01T18:16:57.287Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["nerd-fonts","shell-plugin","shell-prompt"],"created_at":"2024-11-10T12:30:43.827Z","updated_at":"2026-02-01T20:12:40.692Z","avatar_url":"https://github.com/joknarf.png","language":null,"readme":"[![Joknarf Tools](https://img.shields.io/badge/Joknarf%20Tools-Visit-darkgreen?logo=github)](https://joknarf.github.io/joknarf-tools)\n[![Shell](https://img.shields.io/badge/shell-bash%20|%20zsh%20|%20ksh%20-blue.svg)]()\n[![Licence](https://img.shields.io/badge/licence-MIT-blue.svg)](https://shields.io/)\n\n# nerdp\nNerd prompt for bash/ksh/zsh (mksh/ash)  \n\n## demo\n\u003cimg width=\"900\" alt=\"image\" src=\"https://github.com/joknarf/nerdps1/assets/10117818/ebc3f680-69b1-45d2-b1ce-b09b09b545f2\"\u003e\n\n## features\n\nThe following information is displayed:\n\n* exit code if command returns code is not 0\n* elapse time during command if command lasts more than 1s (bash / zsh / ksh \u003e2012)\n* user@hostname\n* current working directory\n* git branch if in git directory (colorized according to git status)\n* python VIRTUAL_ENV and other variables values with name in `ps1_info` variable\n* filesystem usage check of `ps1_fslist` (default \"/ /tmp\") according to `ps1_fslimits` (default \"95 100\")\n* 1min cpu load (colorized default `ps1_loadlimits` \"10 20\")\n* Available memory (colorized default `ps1_memlimits` \"300 100\" MB)\n* Time\n\n## Install\n\n* You can install using a plugin manager like sheldon / zgenom or the best [thefly](https://github.com/joknarf/thefly) : plugin joknarf/nerdp\n```\nfly add joknarf/nerdp\n```\n* Or you can get your local copy and source in your rc file:  \n```\ncurl -sL -o ~/nerdp https://raw.githubusercontent.com/joknarf/nerdp/main/nerdp\n. ~/nerdp\n```\n* To test it you can activate the nerdp prompt directly using:  \n```\n. \u003c(curl -s https://raw.githubusercontent.com/joknarf/nerdp/main/nerdp)\n```\n\n## Font for prompt\n\nFor better experience, install a Nerd font on your system/console (Windows console / Windows terminal / putty / git-bash / CmdEr / iTerm2 / Terminator / MobaXterm / VScode terminal / Pycharm terminal...):  \n[Nerd Fonts](https://www.nerdfonts.com/)\n\non Unix, copy to `~/.fonts` and run `fc-cache -fv` then relaunch your terminal and set the font\n\n  \n## choose your style\nset `ps1_style` variable to available styles in your .nerdrc  \nYou can test using `ps1_style` function:\n\n![image](https://github.com/joknarf/nerdps1/assets/10117818/f8d32297-73f4-4827-9802-b635c9d9a481)\n\n\n## Font rendering\n\nIf your terminal does not manage correctly nerd font symbols, you may switch to more commonly supported powerline font symbols, or even disable the segment separator symbols.  \nYou can use : `ps1_display` function/var to switch prompt display symbol characters:\n```\n$ ps1_display -h\nusage: ps1_display \u003coption\u003e\n    \u003coption\u003e: nerdicons, nerd, powerline, nofont, ascii\n```\n\n## Customizing prompt\n\nYou can add informations on the prompt using ps1_info variable:  \n\n* `ps1_info=\"MYVAR MYVAR2...\"` : will display content of variables\n* `ps1_info=\"(myfunc) (myfunc2)\"` : will display output of functions myfunc myfunc2\n\nYou can add custom colorized segment defining `ps1_addon()` function:\n\n* `ps1_addon() { pgrep rsyslogd \u003e/dev/null || echo 'red:syslog'; }`\noutput format of function:\n  `\u003cbgcolor\u003e[/\u003cfgcolor\u003e/\u003csepcolor\u003e]:\u003cmessage\u003e[|message]`\nempty output discards the segment.\n\nChanging prompt powerline, ps1_powerline variable represents the prompt:\n\n*  segment setting : `symbol/bgcolor/fgcolor/sepcolor:function`\n    * function called is `ps1_function` (ps1_ prefixed)\n    * colors : `black red green yellow blue magenta cyan white`, prefix `l` for light color\n    * symbols : `\u003c \u003e ( )`\n    * when color is set to auto, the function output must be `\u003ccolor\u003e:\u003ctext\u003e` else only `\u003ctext\u003e`\n* right alignment separator : `|`\n* `ps1_powerline=\"(/auto:exit_status (/blue:userhost )/auto:git_branch )/lblack:cwd \u003e | (/lblue/black/blue:info (/auto:freemem (/blue:time )\"`\n![image](https://github.com/joknarf/nerdps1/assets/10117818/54fa6b66-03b5-4b04-8920-a461efcd9ca4)\n* `ps1_powerline=\"auto:exit_status blue:userhost \u003e/auto:git_branch \u003e/lblack:cwd \u003e | \u003c/lblue/black/blue:info \u003c/auto:freemem \u003c/blue:time\"`\n![image](https://github.com/joknarf/nerdps1/assets/10117818/f5d3bc4e-cf65-4889-af5b-817445575ef7)\n\n## color theme example\nused terminal colors in example:\n```json\n        {\n            \"name\": \"NerdPS1\",\n            \"background\": \"#000000\",\n            \"foreground\": \"#D3D7CF\",\n            \"black\": \"#000000\",\n            \"blue\": \"#2760AA\",\n            \"cyan\": \"#06989A\",\n            \"green\": \"#088A5B\",\n            \"purple\": \"#4c3d80\",\n            \"red\": \"#BA1611\",\n            \"white\": \"#D3D7CF\",\n            \"yellow\": \"#CF8700\",\n            \"brightBlack\": \"#243C4F\",\n            \"brightBlue\": \"#729FCF\",\n            \"brightCyan\": \"#34E2E2\",\n            \"brightGreen\": \"#59c566\",\n            \"brightPurple\": \"#AD7FA8\",\n            \"brightRed\": \"#EF2929\",\n            \"brightWhite\": \"#EEEEEC\",\n            \"brightYellow\": \"#FCE94F\"\n        }\n```\n","funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoknarf%2Fnerdp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoknarf%2Fnerdp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoknarf%2Fnerdp/lists"}