{"id":16444933,"url":"https://github.com/jaymon/.bash","last_synced_at":"2025-03-21T05:30:33.599Z","repository":{"id":7835661,"uuid":"9207128","full_name":"Jaymon/.bash","owner":"Jaymon","description":"common bash functions and aliases I've written/accumulated over the years","archived":false,"fork":false,"pushed_at":"2025-03-12T21:33:44.000Z","size":377,"stargazers_count":9,"open_issues_count":11,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-12T22:28:30.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Jaymon.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-03T23:19:31.000Z","updated_at":"2025-03-12T21:33:47.000Z","dependencies_parsed_at":"2024-03-09T00:29:47.154Z","dependency_job_id":"4a151f79-1d19-4212-a13f-e49479d7a0dc","html_url":"https://github.com/Jaymon/.bash","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/Jaymon%2F.bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2F.bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2F.bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2F.bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaymon","download_url":"https://codeload.github.com/Jaymon/.bash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244745631,"owners_count":20503042,"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-10-11T09:42:40.381Z","updated_at":"2025-03-21T05:30:33.146Z","avatar_url":"https://github.com/Jaymon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .bash\n\nHandy bash shell aliases and functions that I've written/collected over the years.\n\nThese require bash version 4 or later.\n\n\n## How can I update my Mac OS bash to the newest version?\n\nFirst thing, you need to install [Homebrew](http://brew.sh/):\n\n    $ ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n\n\nThen you can use Homebrew to install bash:\n\n    $ brew install bash\n\n\nYou must add `/usr/local/bin/bash` to the end of the `/etc/shells` file:\n\n    $ sudo vi /etc/shells\n\nso it should look something like this:\n\n    # List of acceptable shells for chpass(1).\n    # Ftpd will not allow users to connect who are not using\n    # one of these shells.\n\n    /bin/bash\n    /bin/csh\n    /bin/ksh\n    /bin/sh\n    /bin/tcsh\n    /bin/zsh\n    /usr/local/bin/bash\n\nThen you need to change your preferred shell to the new bash:\n\n    $ chsh -s /usr/local/bin/bash \u003cusername\u003e\n\n\nNow, any newly opened terminals should use the new bash by default, you can verify by running:\n\n    $ bash --version\n\n\n## To Install .bash\n\nJust clone this repository into some directory, and then source it in your `.bash_aliases` or `.bash_profile` file\n\n    source /path/to/repo/bash_profile.sh\n\n\n## Goodness\n\n### Background color\n\nIf you have sourced `navigation.sh` and you drop a `.bgcolor` file in a directory with a format like this:\n\n    R G B\n\nWhere R, G, and B are integers between 1-255, then whenever you go into that directory, or a sub directory, the shell's background color will switch to the defined color. When you move out of that shell it will reset to whatever is defined in the environment variable `BGCOLOR_DEFAULT`.\n\nYou just have to add `bgcolor_auto` to your prompt:\n\n    export PROMPT_COMMAND=\"$PROMPT_COMMAND;bgcolor_auto\"\n\n\n### TERM_TITLE\n\nIf you use `bashenv.sh` then you can override the default title of the term window using `TERM_TITLE` environment variable.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2F.bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymon%2F.bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2F.bash/lists"}