{"id":13529548,"url":"https://github.com/mrzool/bash-sensible","last_synced_at":"2025-05-14T09:06:42.074Z","repository":{"id":54646070,"uuid":"47763457","full_name":"mrzool/bash-sensible","owner":"mrzool","description":"An attempt at saner Bash defaults","archived":false,"fork":false,"pushed_at":"2024-10-17T19:31:36.000Z","size":34,"stargazers_count":2060,"open_issues_count":9,"forks_count":97,"subscribers_count":52,"default_branch":"master","last_synced_at":"2025-05-14T09:05:38.541Z","etag":null,"topics":["bash","config","config-bashrc"],"latest_commit_sha":null,"homepage":"https://github.com/mrzool/bash-sensible/blob/master/sensible.bash","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/mrzool.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}},"created_at":"2015-12-10T13:27:02.000Z","updated_at":"2025-05-09T21:08:33.000Z","dependencies_parsed_at":"2025-01-16T13:21:26.938Z","dependency_job_id":"1d654222-07c8-42db-ab87-cbb94493db13","html_url":"https://github.com/mrzool/bash-sensible","commit_stats":{"total_commits":72,"total_committers":8,"mean_commits":9.0,"dds":0.09722222222222221,"last_synced_commit":"eb82f9e87728ea10423a2a2b039a4b491d10c733"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzool%2Fbash-sensible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzool%2Fbash-sensible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzool%2Fbash-sensible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrzool%2Fbash-sensible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrzool","download_url":"https://codeload.github.com/mrzool/bash-sensible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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","config","config-bashrc"],"created_at":"2024-08-01T07:00:37.328Z","updated_at":"2025-05-14T09:06:42.054Z","avatar_url":"https://github.com/mrzool.png","language":"Shell","readme":"# Sensible Bash\n\nAn attempt at saner Bash defaults. Inspired by Tim Pope's [sensible.vim](https://github.com/tpope/vim-sensible).\n\n## The config\n\nSensible Bash is intended to be a simple starting point for a better Bash user experience out of the box.\n\nRefer to the commented [source](https://github.com/mrzool/bash-sensible/blob/master/sensible.bash) for a complete list of all the options with explanations. Here's a taste:\n\n#### Smarter tab completion\n\nReadline bindings to improve on Bash's default tab completion:\n\n- Perform file completion in a case insensitive fashion\n- Treat hyphens and underscores as equivalent\n- Display matches for ambiguous patterns at the first press of the tab key (instead of requiring two tab-presses)\n\n#### Saner history defaults\n\nSensible defaults for the command history:\n\n- Append to the history file instead of overwriting it\n- Save multi-line commands as one command\n- Record each line as it gets issued\n- Keep track of a bigger history\n- Avoid duplicate entries\n- Avoid recording unneeded commands (`exit`, `ls`, `bg`, `fg`, and `history` itself)\n- Use a [standard ISO 8601](https://tools.ietf.org/html/rfc3339) timestamp for recording commands (ex: `2016-04-09 13:06:31`)\n\nRead more about the settings used here in the article [Better Bash History](http://blog.sanctum.geek.nz/better-bash-history/) by Tom Ryder.\n\n#### Faster file system navigation\n\nOptions that considerably speed up the ability to navigate throughout the file system:\n\n- Prepend `cd` to directory names automatically, so you can change to a directory just by typing its name\n- Automatically correct spelling errors during tab-completion and in arguments supplied to `cd`\n- Set more targets to the `cd` command besides the current working directory (ex: `projects`, `repos`, `documents`, etc)\n- Define paths as variables and `cd` into it from anywhere, kind of like a bookmarking system for Bash (`cdable_vars`)\n\n## Usage\n\nYou can copy `sensible.bash` in your `bashrc`, cherry-pick the options you like, or source the file at the top of your `bashrc`:\n\n```bash\nif [ -f ~/bin/sensible.bash ]; then\n   source ~/bin/sensible.bash\nfi\n```\n\n### Caveats\n\nIn order to get Sensible Bash to work correctly, make sure that:\n\n- You're running at least Bash 4.x (`echo $BASH_VERSION`).\n- You have the [Bash Completion](https://github.com/scop/bash-completion) package installed and properly configured on your system.\n- If you're on macOS, I recommend to follow [Josh Staiger's advice](http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html) and source `bashrc` from `bash_profile` so to keep all your configuration in one place.\n\n## See also\n\n- My [article](http://mrzool.cc/writing/sensible-bash/) about Sensible Bash\n- My [dotfiles](https://github.com/mrzool/dotfiles) for more \\*nix configuration goodies\n- [Unix as IDE](https://github.com/mrzool/unix-as-ide), my ebook port of the excellent [post series](http://blog.sanctum.geek.nz/series/unix-as-ide/) by Tom Ryder\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","funding_links":[],"categories":["Shell","bash","Tools","Shells","Prompts and Color Themes","Basics","Customization"],"sub_categories":["Bash","Reusable Things","PCAP","[Bash](https://www.gnu.org/software/bash/)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzool%2Fbash-sensible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrzool%2Fbash-sensible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrzool%2Fbash-sensible/lists"}