{"id":24708846,"url":"https://github.com/keyboardcowboy/bash-beautify","last_synced_at":"2025-03-22T06:28:11.616Z","repository":{"id":2856073,"uuid":"3860615","full_name":"KeyboardCowboy/Bash-Beautify","owner":"KeyboardCowboy","description":"Create colorful bash prompts to integrate with SVN and GIT","archived":false,"fork":false,"pushed_at":"2012-12-13T17:43:34.000Z","size":209,"stargazers_count":16,"open_issues_count":4,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-27T06:47:33.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KeyboardCowboy.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-28T23:14:24.000Z","updated_at":"2024-03-22T20:38:14.000Z","dependencies_parsed_at":"2022-07-31T13:59:10.108Z","dependency_job_id":null,"html_url":"https://github.com/KeyboardCowboy/Bash-Beautify","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/KeyboardCowboy%2FBash-Beautify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyboardCowboy%2FBash-Beautify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyboardCowboy%2FBash-Beautify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeyboardCowboy%2FBash-Beautify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeyboardCowboy","download_url":"https://codeload.github.com/KeyboardCowboy/Bash-Beautify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918133,"owners_count":20531681,"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":"2025-01-27T06:47:36.445Z","updated_at":"2025-03-22T06:28:11.592Z","avatar_url":"https://github.com/KeyboardCowboy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Bash Beautify\n================================================================================\nBash Beautify adds simple color support and SVN and GIT branch recognition to\nyour bash prompt.\n\n--------------------------------------------------------------------------------\n+ Requirements\n--------------------------------------------------------------------------------\n- If using SVN, your project must use a standard /trunk /branches /tags\n  structure.\n\n--------------------------------------------------------------------------------\n+ Installation\n--------------------------------------------------------------------------------\n1. Place the .bash_beautify file in your home directory.\n2. Add the following line to the top of your .bash_profile or .bashrc file.\n\nsource ~/.bash_beautify\n\nThat's it!  The next time you start a bash session you should see a pretty, new\nbash prompt.\n\nBy default GIT branches are green and SVN are yellow.\n\nIf you would like to customzize your prompt, add the following line\nunder the previous one and use the brief tutorial below. (It might be helpful to\ncopy the one from the bottom of the actual file to start.)\n\nexport PS1=\"[\\u@\\h]\\$\"\n\n--------------------------------------------------------------------------------\n+ Building Your Bash Prompt\n--------------------------------------------------------------------------------\nThe bash prompt is really just a string with a few variables in it.  Here is a\nlist of the basic variables you can use and how they work:\n\nUNIX COMMANDS\n-------------\nThese will be replaced with their respective values.\n\n\\u    Your username. (ex. calbrecht)\n\\h    Your system hostname. (ex. localhost)\n\\w    Your present working directory. (ex. /var/www/htdocs/website)\n\nCOLORS\n------\nThese will alter the color of the text from this point forward.  Use the reset\nat the bottom to stop using the changed color.\n\n${BLACK}\n${RED}\n${GREEN}\n${YELLOW}\n${BLUE}\n${VIOLET}\n${CYAN}\n${WHITE}\n${BRIGHT_BLACK}\n${BRIGHT_RED}\n${BRIGHT_GREEN}\n${BRIGHT_YELLOW}\n${BRIGHT_BLUE}\n${BRIGHT_VIOLET}\n${BRIGHT_CYAN}\n${BRIGHT_WHITE}\n${NORMAL}\n${RESET}\n\nSVN and GIT\n-----------\nThe icing on the cake.  Add this variable to your line and it will be replaced\nwith \"(GIT_BRANCH|SVN_BRANCH)\" depending on which (or both if you are crazy\nenough) version control system you are using.\n\n$(vcs_branch)\n\n--------------------------------------------------------------------------------\n+ Examples\n--------------------------------------------------------------------------------\n1. A basic prompt.\n\n   [calbrecht@localhost]$\n   export PS1=\"[\\u@\\h]\\$\"\n\n\n2. Add the present working directory to each prompt.\n\n   [calbrecht@localhost: /var/www/htdocs/newsite/includes]$\n   export PS1=\"[\\u@\\h: \\w]\\$\"\n\n\n3. Put the VCS branches in it.\n\n   [calbrecht@localhost(7.x-1.x): /var/www/htdocs/newsite/includes]$\n   export PS1=\"[\\u@\\h$(vcs_branch): \\w]\\$\"\n\n\n4. Spice it up with a little color.\n\n   [calbrecht@localhost(7.x-1.x): /var/www/htdocs/newsite/includes]$\n   export PS1=\"${BRIGHT_CYAN}[${CYAN}\\u${BRIGHT_WHITE}@${CYAN}\\h${WHITE}\\$(vcs_branch)${WHITE}: \\w${BRIGHT_CYAN}]${NORMAL}\\$ ${RESET}\"\n\n\n--------------------------------------------------------------------------------\n+ Advanced\n--------------------------------------------------------------------------------\nIf you don't like the colors of the SVN and GIT branches, you can change those\nin the .bash_beautify file in the vcs_branches function.  I coded them in there\nto make it easier to deploy for newbies.\n\nYou can also call either piece separately without any formatting:\n\n$(git_branch)\n$(svn_branch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyboardcowboy%2Fbash-beautify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeyboardcowboy%2Fbash-beautify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeyboardcowboy%2Fbash-beautify/lists"}