{"id":13529687,"url":"https://github.com/twolfson/sexy-bash-prompt","last_synced_at":"2025-05-16T15:02:45.785Z","repository":{"id":51805842,"uuid":"11276501","full_name":"twolfson/sexy-bash-prompt","owner":"twolfson","description":"Bash prompt with colors, git statuses, and git branches.","archived":false,"fork":false,"pushed_at":"2021-03-22T19:11:56.000Z","size":776,"stargazers_count":1143,"open_issues_count":2,"forks_count":153,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-05-09T04:28:40.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/twolfson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-09T08:02:48.000Z","updated_at":"2025-05-08T17:45:38.000Z","dependencies_parsed_at":"2022-08-13T01:10:37.055Z","dependency_job_id":null,"html_url":"https://github.com/twolfson/sexy-bash-prompt","commit_stats":null,"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twolfson%2Fsexy-bash-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twolfson%2Fsexy-bash-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twolfson%2Fsexy-bash-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twolfson%2Fsexy-bash-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twolfson","download_url":"https://codeload.github.com/twolfson/sexy-bash-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253451728,"owners_count":21910771,"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":[],"created_at":"2024-08-01T07:00:38.534Z","updated_at":"2025-05-16T15:02:45.703Z","avatar_url":"https://github.com/twolfson.png","language":"Shell","funding_links":["https://opencollective.com/sexy-bash-prompt/banner.md","https://opencollective.com/sexy-bash-prompt","https://opencollective.com/sexy-bash-prompt/backer/0/website","https://opencollective.com/sexy-bash-prompt/backer/1/website","https://opencollective.com/sexy-bash-prompt/backer/2/website","https://opencollective.com/sexy-bash-prompt/backer/3/website","https://opencollective.com/sexy-bash-prompt/backer/4/website","https://opencollective.com/sexy-bash-prompt/backer/5/website","https://opencollective.com/sexy-bash-prompt/backer/6/website","https://opencollective.com/sexy-bash-prompt/backer/7/website","https://opencollective.com/sexy-bash-prompt/backer/8/website","https://opencollective.com/sexy-bash-prompt/backer/9/website","https://opencollective.com/sexy-bash-prompt/backer/10/website","https://opencollective.com/sexy-bash-prompt/backer/11/website","https://opencollective.com/sexy-bash-prompt/backer/12/website","https://opencollective.com/sexy-bash-prompt/backer/13/website","https://opencollective.com/sexy-bash-prompt/backer/14/website","https://opencollective.com/sexy-bash-prompt/backer/15/website","https://opencollective.com/sexy-bash-prompt/backer/16/website","https://opencollective.com/sexy-bash-prompt/backer/17/website","https://opencollective.com/sexy-bash-prompt/backer/18/website","https://opencollective.com/sexy-bash-prompt/backer/19/website","https://opencollective.com/sexy-bash-prompt/backer/20/website","https://opencollective.com/sexy-bash-prompt/backer/21/website","https://opencollective.com/sexy-bash-prompt/backer/22/website","https://opencollective.com/sexy-bash-prompt/backer/23/website","https://opencollective.com/sexy-bash-prompt/backer/24/website","https://opencollective.com/sexy-bash-prompt/backer/25/website","https://opencollective.com/sexy-bash-prompt/backer/26/website","https://opencollective.com/sexy-bash-prompt/backer/27/website","https://opencollective.com/sexy-bash-prompt/backer/28/website","https://opencollective.com/sexy-bash-prompt/backer/29/website"],"categories":["Shell","Customization","others","Shells","Packages","Prompts and Color Themes"],"sub_categories":["Directory Navigation","Git","Prompts","Reusable Things"],"readme":"# sexy-bash-prompt [![Build status](https://travis-ci.org/twolfson/sexy-bash-prompt.png?branch=master)](https://travis-ci.org/twolfson/sexy-bash-prompt)\n\n[Bash][bash] prompt with colors, git statuses, and git branches.\n\nProviding a unique symbol for every combination of a dirty, unpulled, and unpushed `git` branch.\n\n![sexy-bash-prompt screenshot][screenshot]\n\n[screenshot]: screenshot.png\n\nForked from [a gist by gf3][sexy-bash-orig].\n\n[sexy-bash-orig]: https://gist.github.com/gf3/306785/a35d28b6bdd0f7c54318cce510738438f04dabaa\n\n### Do you like `sexy-bash-prompt`?\n\u003c!-- Derived from https://opencollective.com/sexy-bash-prompt/banner.md --\u003e\n[Support us with a monthly donation and help us continue our activities][donations] or [spread word on Twitter][twitter]\n\n[donations]: https://opencollective.com/sexy-bash-prompt#backer\n[twitter]: https://twitter.com/intent/tweet?text=Bash%20prompt%20with%20colors%2C%20git%20statuses%2C%20and%20git%20branches\u0026url=https%3A%2F%2Fgithub.com%2Ftwolfson%2Fsexy-bash-prompt\u0026via=sexybashprompt\n\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/9/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/10/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/10/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/11/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/11/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/12/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/12/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/13/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/13/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/14/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/14/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/15/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/15/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/16/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/16/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/17/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/17/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/18/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/18/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/19/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/19/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/20/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/20/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/21/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/21/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/22/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/22/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/23/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/23/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/24/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/24/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/25/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/25/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/26/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/26/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/27/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/27/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/28/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/28/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/backer/29/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/backer/29/avatar.svg\"\u003e\u003c/a\u003e\n\n### Sponsors\nBecome a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor](https://opencollective.com/sexy-bash-prompt#sponsor)\n\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/10/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/10/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/11/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/11/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/12/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/12/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/13/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/13/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/14/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/14/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/15/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/15/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/16/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/16/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/17/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/17/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/18/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/18/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/19/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/19/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/20/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/20/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/21/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/21/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/22/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/22/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/23/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/23/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/24/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/24/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/25/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/25/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/26/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/26/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/27/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/27/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/28/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/28/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/sexy-bash-prompt/sponsor/29/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/sexy-bash-prompt/sponsor/29/avatar.svg\"\u003e\u003c/a\u003e\n\n## Installation\nOne line install (requires `git`, `make`):\n\n```bash\n(cd /tmp \u0026\u0026 ([[ -d sexy-bash-prompt ]] || git clone --depth 1 --config core.autocrlf=false https://github.com/twolfson/sexy-bash-prompt) \u0026\u0026 cd sexy-bash-prompt \u0026\u0026 make install) \u0026\u0026 source ~/.bashrc\n\n```\n\n### My colors don't look as advertised\nIf you are seeing a screen like this:\n\n![Bad TERM config](docs/bad_term.png)\n\nThen, your `TERM` environment variable may never have been configured. Run the script below to prefix our prompt with a `TERM` setup\n\n```bash\ncat \u003e /tmp/.bash_prompt_term \u003c\u003cEOF\n#!/usr/bin/env bash\n# Determine what type of terminal we are using for \\`tput\\`\nif [[ \\$COLORTERM = gnome-* \u0026\u0026 \\$TERM = xterm ]]  \u0026\u0026 infocmp gnome-256color \u003e/dev/null 2\u003e\u00261; then export TERM=gnome-256color\nelif [[ \\$TERM != dumb ]] \u0026\u0026 infocmp xterm-256color \u003e/dev/null 2\u003e\u00261; then export TERM=xterm-256color\nfi\n\nEOF\nchmod +x /tmp/.bash_prompt_term\ncat ~/.bash_prompt \u003e\u003e /tmp/.bash_prompt_term\ncp /tmp/.bash_prompt_term ~/.bash_prompt\nrm /tmp/.bash_prompt_term\n```\n\n### Manual install\nRequirements: `git`, `make`\n\n```bash\n# Clone the repository\ngit clone --depth 1 --config core.autocrlf=false https://github.com/twolfson/sexy-bash-prompt\n# Cloning into 'sexy-bash-prompt'...\n# ...\n# Resolving deltas: 100% (13/13), done.\n\n# Go into the directory\ncd sexy-bash-prompt\n# Install the script\nmake install\n# # Copying .bash_prompt to ~/.bash_prompt\n# cp -f \".bash_prompt\" \"/home/todd/.bash_prompt\"\n# ./install.bash\n# # twolfson/sexy-bash-prompt installation complete!\n\n# Rerun your ~/.bashrc\nsource ~/.bashrc\n# todd at Euclid in ~/github/sexy-bash-prompt on master\n# Your PS1 should now look like this!\n```\n\n## Configuration\n### Behavior\nBehavior can be customized with the following environment variables:\n\n- `PROMPT_SHOW_ERROR_ONCE` - If enabled (default), then will only show error color once per command execution\n  - `bash` persists a non-zero exit code across missing commands (e.g. comment line only, keyboard interrupt, empty command)\n  - Setting this to `1` (default) means show error status once, `0` means always show same error status until a new command is executed\n\n### Colors\nColors can be customized by editing `.bash_prompt` directly, or by setting the following environment variables:\n\n- `PROMPT_USER_COLOR` - Color for username (e.g. `todd`)\n- `PROMPT_PREPOSITION_COLOR` - Color for 'at', 'in', 'on'\n- `PROMPT_DEVICE_COLOR` - Color for machine name (e.g. `Euclid`)\n- `PROMPT_DIR_COLOR` - Color for directory (e.g. `~/github/sexy-bash-prompt`)\n- `PROMPT_GIT_STATUS_COLOR` - Color for git branch and symbol (e.g. `master`)\n- `PROMPT_GIT_PROGRESS_COLOR` - Color for in progress git actions (e.g. `[merge]`)\n- `PROMPT_SYMBOL_COLOR` - Color for prompt symbol by default or on success (e.g. `$`)\n- `PROMPT_SYMBOL_ERROR_COLOR` - Color for prompt symbol on error (e.g. `$`)\n\nYou can set colors via [`tput`][] or [ANSI escape codes][]. For example:\n\n[`tput`]: http://en.wikipedia.org/wiki/Tput\n[ANSI escape codes]: http://en.wikipedia.org/wiki/ANSI_escape_code\n\n```bash\n# Inside your `.bashrc` or `.bash_profile`\nPROMPT_USER_COLOR=\"$(tput bold)$(tput setaf 9)\" # BOLD RED\nsource ~/.bash_prompt\n```\n\n![Color overridden prompt](docs/color_override.png)\n\n### Symbols\nSimilarly, symbols can be customized with the following environment variables:\n\n- `PROMPT_SYNCED_SYMBOL` - Symbol for clean and synced branch (e.g. empty string)\n- `PROMPT_DIRTY_SYNCED_SYMBOL` - Symbol for dirty and synced branch (e.g. `*`)\n- `PROMPT_UNPUSHED_SYMBOL` - Symbol for unpushed branch (e.g. `△`)\n- `PROMPT_DIRTY_UNPUSHED_SYMBOL` - Symbol for dirty and unpushed branch (e.g. `▲`)\n- `PROMPT_UNPULLED_SYMBOL` - Symbol for unpulled branch (e.g. `▽`)\n- `PROMPT_DIRTY_UNPULLED_SYMBOL` - Symbol for dirty and unpulled branch (e.g. `▼`)\n- `PROMPT_UNPUSHED_UNPULLED_SYMBOL` - Symbol for unpushed and unpulled branch (e.g. `⬡`)\n- `PROMPT_DIRTY_UNPUSHED_UNPULLED_SYMBOL` - Symbol for dirty, unpushed, and unpulled branch (e.g. `⬢`)\n- `PROMPT_SYMBOL` - Symbol given after each prompt (e.g. `$`)\n    - By default, this is `$` for normal users and `#` for root\n\n```bash\n# Inside your `.bashrc` or `.bash_profile`\nPROMPT_UNPUSHED_SYMBOL=\"↑\"\nsource ~/.bash_prompt\n```\n\n![Symbol overridden prompt](docs/symbol_override.png)\n\n#### Compatibility\nIn some situations, the default symbol set can be drawn incorrectly (e.g. as diamonds). To remedy that, a simpler set of symbols can be used:\n\n```bash\nPROMPT_SYNCED_SYMBOL=\"\"\nPROMPT_DIRTY_SYNCED_SYMBOL=\"*\"\nPROMPT_UNPUSHED_SYMBOL=\"↑\"\nPROMPT_DIRTY_UNPUSHED_SYMBOL=\"*↑\"\nPROMPT_UNPULLED_SYMBOL=\"↓\"\nPROMPT_DIRTY_UNPULLED_SYMBOL=\"*↓\"\nPROMPT_UNPUSHED_UNPULLED_SYMBOL=\"*↑↓\"\nPROMPT_DIRTY_UNPUSHED_UNPULLED_SYMBOL=\"*↑↓\"\n```\n\n## How does it work?\n[bash][bash] provides a special set of [variables for your prompts][ps-vars]. `PS1` is the one used by default. The install script adds a command to `~/.bashrc`, a file that is run every time a new terminal opens. Inside of the new command, we run our script and set your `PROMPT_COMMAND` and `PS1` which runs some `git` commands to determine its current state and outputs them as a string.\n\n[bash]: https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29\n[ps-vars]: http://www.gnu.org/software/bash/manual/bashref.html#index-PS1\n\n## Support\nLinux and Mac OSX are supported platforms.\n\nWindows is supported to the best of my abilities. However, there have been [font issues][putty-issue] with using [PuTTY][].\n\n[PuTTY]: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html\n[putty-issue]: https://github.com/twolfson/sexy-bash-prompt/issues/7\n\n## Uninstallation\nTo uninstall `sexy-bash-prompt`, perform the following steps:\n\n- Remove `. ~/.bash_prompt` from `~/.bashrc`\n- Delete `~/.bash_prompt` (e.g. `rm ~/.bash_prompt`)\n- During installation, we may have added a `. ~/.bashrc` invocation to `~/.bash_profile`, `~/.bash_login`, or `~/.profile`\n    - Feel free to remove this if it's no longer necessary\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test via `make test`.\n\n## License\nCopyright (c) 2013 Todd Wolfson\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwolfson%2Fsexy-bash-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwolfson%2Fsexy-bash-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwolfson%2Fsexy-bash-prompt/lists"}