{"id":31074054,"url":"https://github.com/erfeatux/nerdline","last_synced_at":"2026-04-02T14:51:12.981Z","repository":{"id":314348679,"uuid":"1055052237","full_name":"erfeatux/nerdline","owner":"erfeatux","description":"Simple, lightweight, and functional powerline prompt for Bash written in pure Bash.","archived":false,"fork":false,"pushed_at":"2026-03-26T04:04:28.000Z","size":366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T00:47:22.390Z","etag":null,"topics":["bash","powerline","prompt","statusline"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erfeatux.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":"2025-09-11T17:39:44.000Z","updated_at":"2026-03-26T04:04:33.000Z","dependencies_parsed_at":"2025-09-12T01:02:22.854Z","dependency_job_id":"a1335ae3-8ac3-4342-8319-d2a57fd9fae5","html_url":"https://github.com/erfeatux/nerdline","commit_stats":null,"previous_names":["erfeatux/nerdline"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/erfeatux/nerdline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfeatux%2Fnerdline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfeatux%2Fnerdline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfeatux%2Fnerdline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfeatux%2Fnerdline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erfeatux","download_url":"https://codeload.github.com/erfeatux/nerdline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erfeatux%2Fnerdline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["bash","powerline","prompt","statusline"],"created_at":"2025-09-16T02:02:06.448Z","updated_at":"2026-04-02T14:51:12.970Z","avatar_url":"https://github.com/erfeatux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nerdline\nA simple powerline style prompt generator for Bash, written 100% in pure Bash.\n![screenshot](screenshot.avif)\n\n## ✨ Features\n\nnerdline provides a customizable prompt with multiple **segments**, inspired by powerline.  \nAll segments are implemented in **pure Bash** — no external dependencies required.  \n\n### Supported segments:\n- 🌀 **git** — branch name, files changed counter  \n- 📜 **hist** — displays history writing state (_for built-in `histoff` command_) \n- 🖥 **hostname** — current hostname  \n- ⚙️ **jobs** — background jobs counter  \n- 📂 **pwd** — current working directory  \n- 🐍 **python** — current venv or conda notifier  \n- 🟥 **retcode** — last command exit code  \n- 👤 **user** — current username\n\n### Supported modules:\nModules extend the functionality of nerdline.\n- 🔑 **ssh** — when connecting to a remote host via SSH, nerdline automatically deploys itself to that host and starts\n- 🔒 **sudo** — when running `sudo su`, nerdline is automatically launched for the elevated session\n- 🖥️ **win_title** — sets terminal window title using OSC 2 escape sequences, showing current command and context  \n\n## 📦 Installation\n\nClone the repository:\n```bash\ngit clone https://github.com/erfeatux/nerdline.git ~/.local/share/nerdline\n```\n\nAdd to `~/.bashrc` (for tmux/screen compatibility use `type -t` check instead of variable):\n```bash\nif [[ $(type -t __nerdline_update) != function ]] \u0026\u0026 [[ -z $STY ]]\nthen\n  ~/.local/share/nerdline/nerdline.sh test \u0026\u0026 source ~/.local/share/nerdline/nerdline.sh\nfi\n```\n\nAfter install to run immediately:\n```bash\n~/.local/share/nerdline/nerdline.sh test \u0026\u0026 source ~/.local/share/nerdline/nerdline.sh\n```\n\n## 🔧 Configuration\n\n⚠️ **Note:** to properly display the special symbols from the default config, your terminal must use a font from [Nerd Fonts](https://www.nerdfonts.com/).\n\nThe configuration file can be placed in one of the following locations (checked in order):\n\n- `/etc/nerdline.cfg`  \n- `$XDG_CONFIG_HOME/nerdline.cfg`  \n- `~/.config/nerdline.cfg`  \n\nThis file allows you to override default settings, customize segments, modules, colors, and symbols.\n\nExample:\n```ini\n[nerdline]\nsegments=user hostname python hist git pwd jobs retcode\nmodules=ssh sudo win_title\nseparator=' '\nseparator_same_bg='░ '\n\n[user]\ncolor_fg=238:238:238\ncolor_bg=1:1:1\ncolor_root=#ff0000\ncolor_user=#00f\nsign_root='󰐣 '\nsign_sudo='󰀅 '\nsign_user='󰀄 '\n\n[hostname]\ncolor_bg=9:9:9\ncolor_fg=0:255:0\ncolor_sign=153:153:153\ncolor_sign_ssh=0:255:0\n# show ip on remote host\nshowip=false\n# show hostname on localhost\nshowlocal=false\nsign=' '\nsign_ssh='󱫋 '\n\n[python]\ncolor_bg=9:9:9\ncolor_fg=0:255:0\ncolor_sign=0:255:0\ncolor_sign_conda=0:255:0\nsign='󰌠 '\nsign_conda='󱔎 '\n\n[hist]\ncolor_bg=9:9:9\ncolor_fg=170:0:0\nsign=󱙄\n\n[git]\ncolor_add=0:255:0\ncolor_bg=9:9:9\ncolor_fg=0:255:0\ncolor_ignore=136:136:136\ncolor_mod=255:170:0\ncolor_rm=255:0:0\ncolor_rn=0:0:255\ncolor_sign=0:255:0\nsign_add=\n\n[pwd]\ncolor_bg=9:9:9\ncolor_fg=153:153:153\ncolor_sign=238:238:238\nhome_sign=\n\n[jobs]\ncolor_bg=34:34:34\ncolor_running=0:255:0\ncolor_stopped=255:0:0\nsign_running=󱑠\nsign_stopped=󱤳\n\n[retcode]\ncolor_bg=34:34:34\ncolor_err=170:0:0\ncolor_fg=0:170:0\nsign_err=󱎘\nsign_ok=󰸞\n\n[win_title]\n# Window title format (default: %USER@%HOSTSHORT: %CMD)\n# Available placeholders:\n#   %CMD        - current command\n#   %ARGS       - command arguments only\n#   %BASECMD    - command name without path\n#   %PWD        - current directory (with ~ for home if short_pwd=true)\n#   %BASEPWD    - current directory name (~ if home and short_pwd=true)\n#   %HOME       - home directory with tilde\n#   %USER       - current username\n#   %HOSTNAME   - full hostname\n#   %HOSTSHORT  - hostname without domain\n#   %SHELLNAME  - shell name (bash/zsh/fish)\n#   %SHELLVERSION - shell version\n#   %TIME       - current time (HH:MM:SS)\n#   %DATE       - current date (YYYY-MM-DD)\n#   %JOBS       - number of background jobs\n#   %EXITCODE   - last command exit code\nformat=%USER@%HOSTSHORT: %CMD\n\n# Shorten home directory to ~ in PWD placeholder (default: true)\n# Set to false to show full path\nshort_pwd=true\n```\n⚠️ **Note:** use command `nerdline update` to reload config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfeatux%2Fnerdline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfeatux%2Fnerdline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfeatux%2Fnerdline/lists"}