{"id":28391066,"url":"https://github.com/brandonvfx/go-prompt","last_synced_at":"2026-04-10T20:44:38.991Z","repository":{"id":10421308,"uuid":"12581303","full_name":"brandonvfx/go-prompt","owner":"brandonvfx","description":"A prompt generator","archived":false,"fork":false,"pushed_at":"2013-12-06T23:12:59.000Z","size":215,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T16:43:41.688Z","etag":null,"topics":["bash","go","golang","powerline","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","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/brandonvfx.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":"2013-09-04T03:47:22.000Z","updated_at":"2017-08-17T15:20:23.000Z","dependencies_parsed_at":"2022-08-26T20:23:50.593Z","dependency_job_id":null,"html_url":"https://github.com/brandonvfx/go-prompt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brandonvfx/go-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonvfx%2Fgo-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonvfx%2Fgo-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonvfx%2Fgo-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonvfx%2Fgo-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonvfx","download_url":"https://codeload.github.com/brandonvfx/go-prompt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonvfx%2Fgo-prompt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262981327,"owners_count":23394516,"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":["bash","go","golang","powerline","terminal"],"created_at":"2025-05-31T08:08:03.686Z","updated_at":"2026-04-10T20:44:38.955Z","avatar_url":"https://github.com/brandonvfx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-prompt\n=========\n\n[![Build Status](https://secure.travis-ci.org/brandonvfx/go-prompt.png?branch=master)](http://travis-ci.org/brandonvfx/go-prompt)\n\nA prompt generator (bash only currently) based on [powerline-shell](https://github.com/milkbikis/powerline-shell).\n\n![screenshot](https://raw.github.com/brandonvfx/go-prompt/master/screenshot.png)\n\nWhy?\n----\n\nI really like the look and feel of the powerline-shell prompt and when I started to learn Go I wanted my first *real* project to be something I use everyday. So re-writing powerline-shell seemed like a *good* idea.\n\n\nInstall\n-------\n\n`go get github.com/brandonvfx/go-prompt`\n\nor\n\nDownload the binary from the releases page: https://github.com/brandonvfx/go-prompt/releases\n\n\nUsage\n-----\n\nAdd the following to your `.bashrc` (assuming `go-prompt` is in your path):\n\n    function _update_ps1() {\n        export PS1=\"$(go-prompt $? 2\u003e /dev/null)\"\n    }\n\n    export PROMPT_COMMAND=\"_update_ps1\"\n\n\nConfig\n------\n\nSave the default config to a file (~/.go_prompt)\n\n`go-prompt -write-config`\n\n\n###Themes:\n\n    Config key: `theme`\n    Type: Hash\n\n\n###Symbols:\n\n    Config key: `symbols`\n    Type: Hash\n\n\n###Enabling segments:\n\n    Config key: `segments`\n    Type: Array of Strings\n\n\n\n\nSegments\n--------\n\n**CwdSegment** - Shows the current path\n\n**CmdSegment** - Shows the exit status of the last command\n\n**HostSegment** - Shows the current host\n\n**GitSegment** - Shows the current git branch and status.\n\n**ReadOnlySegment** - Shows if the current directory is writable by you.\n\n**RvmSegment** - Shows current rvm gemset\n\n**UserSegment** - Shows current user\n\n**UserHostSegment** - Shows the current user and host.\n\n**VirtualEnvSegment** - Shows the current python virtualenv. \n\n\nChange Log\n----------\n\n###0.1.0\n\nInitial version. \n\n\nTodo\n----\n\n- Add tests\n\n- zsh support\n\n- more segments\n\n\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/brandonvfx/go-prompt/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonvfx%2Fgo-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonvfx%2Fgo-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonvfx%2Fgo-prompt/lists"}