You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add interactive update prompt and colorful output to doctor
Enhancements to the bash-it doctor command:
**Interactive Update Prompt:**
- Offers to update bash-it when behind remote master
- Only prompts when safe (no uncommitted changes, can fast-forward)
- Performs git merge with --ff-only for safety
- Provides clear feedback on update status
**Colorful Output:**
- Color-coded sections (cyan headers, green labels, yellow warnings)
- Visual indicators (✓ for up-to-date status)
- Improved readability for terminal output
**Better Configuration Detection:**
- Now greps ALL common config files (.bashrc, .bash_profile, .profile)
- Shows bash-it loading context from each file found
- Previously only checked single config file
**Improved Version Display:**
- Shows commits ahead of latest tag (e.g., "v3.1.2 +3")
- Clearer version information for users not on tagged releases
**Documentation Updates:**
- Updated bug_report.yml to streamline diagnostic info collection
- Added Diagnostics section to README
- Emphasizes using `bash-it doctor` for bug reports
Related to issue #1745
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
If you're experiencing issues with Bash-it or need to report a bug, use the built-in diagnostics tool:
61
+
62
+
```bash
63
+
bash-it doctor
64
+
```
65
+
66
+
This command provides a comprehensive summary including:
67
+
- Environment information (OS, Bash version)
68
+
- Bash-it version and update status
69
+
- Configuration file locations and how Bash-it is loaded
70
+
- List of enabled components (aliases, plugins, completions)
71
+
72
+
**When reporting bugs**, please include the full output of `bash-it doctor` in your issue report.
73
+
74
+
The doctor command can also help you update Bash-it - if you're behind the latest version and it's safe to update, you'll be prompted to merge the latest changes.
75
+
57
76
## Contributing
58
77
59
78
Please take a look at the [Contribution Guidelines](https://bash-it.readthedocs.io/en/latest/contributing) before reporting a bug or providing a new feature.
60
79
80
+
**When reporting bugs**, always run `bash-it doctor` and include its output in your issue report to help maintainers diagnose the problem quickly.
81
+
61
82
The [Development Guidelines](https://bash-it.readthedocs.io/en/latest/development) have more information on some of the internal workings of Bash-it,
62
83
please feel free to read through this page if you're interested in how Bash-it loads its components.
0 commit comments