From c19ab50fe656030a627551cf267040ee19e78039 Mon Sep 17 00:00:00 2001 From: SOSMLG <117748270+SOSMLG@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:56:17 -0800 Subject: [PATCH] docs: align ButterBash README with repo standard --- butterbash/DOCUMENTATION.md | 4 +- butterbash/README.md | 148 ++++++++++++++++++------------------ 2 files changed, 76 insertions(+), 76 deletions(-) diff --git a/butterbash/DOCUMENTATION.md b/butterbash/DOCUMENTATION.md index bccbf1c..6a91a15 100644 --- a/butterbash/DOCUMENTATION.md +++ b/butterbash/DOCUMENTATION.md @@ -44,7 +44,7 @@ ``` ~/.config/bash/ ├── aliases.bash # All command shortcuts -├── prompt.bash # Git-aware prompt configuration +├── prompt.bash # Git-aware prompt configuration ├── keybinds.bash # Keyboard shortcuts ├── fzf.bash # FZF fuzzy finder setup ├── zoxide.bash # zoxide smarter-cd hook @@ -319,4 +319,4 @@ source ~/.bashrc --- -This documentation serves as a complete reference for ButterBash functionality and can be used to continue development even in a new session. \ No newline at end of file +This documentation serves as a complete reference for ButterBash functionality and can be used to continue development even in a new session. diff --git a/butterbash/README.md b/butterbash/README.md index 19d7ed4..ad68932 100644 --- a/butterbash/README.md +++ b/butterbash/README.md @@ -1,95 +1,92 @@ -# 🧈 ButterBash -![Made for Debian](https://img.shields.io/badge/Made%20for-Debian-A81D33?style=for-the-badge&logo=debian&logoColor=white) -![Bash](https://img.shields.io/badge/Shell-Bash-4EAA25?style=for-the-badge&logo=gnubash&logoColor=white) -![Stars](https://img.shields.io/gitea/stars/justaguylinux/butterbash?gitea_url=https://codeberg.org&style=for-the-badge&logo=codeberg&logoColor=white&color=yellow&label=Stars) -![Forks](https://img.shields.io/gitea/forks/justaguylinux/butterbash?gitea_url=https://codeberg.org&style=for-the-badge&logo=codeberg&logoColor=white&color=blue&label=Forks) -![Last Commit](https://img.shields.io/gitea/last-commit/justaguylinux/butterbash?gitea_url=https://codeberg.org&style=for-the-badge&logo=codeberg&logoColor=white&color=green&label=Last%20Commit) +# ButterBash -A smooth, modular Bash configuration framework that makes your shell experience butter-smooth. +A modular Bash configuration framework: aliases, functions, a Git-aware prompt, and optional tool integration. -## ✨ Features +## Features -- **Modular Design**: Clean separation of concerns with individual files for aliases, functions, and configurations -- **FZF Integration**: Fuzzy finding for files and processes -- **Git-Aware Prompt**: Shows current branch in your prompt -- **Extensive Aliases**: Productivity shortcuts for common tasks -- **Archive Extraction**: Universal `extract` command for all archive types -- **System Functions**: Quick system info, colored man pages, and more -- **Extension Ready**: Works with [ButterNotes](https://codeberg.org/justaguylinux/butternotes) for note-taking and todo management +- **Modular design**: Separate files for aliases, functions and configuration. +- **FZF integration**: Fuzzy finding for files and processes. +- **Git-aware prompt**: Shows the current branch in your prompt. +- **Aliases**: Shortcuts for common tasks. +- **Archive extraction**: One `extract` command for all archive types. +- **System functions**: Quick system info, colored man pages and more. +- **Extension ready**: Works with [ButterNotes](https://codeberg.org/justaguylinux/butternotes) for notes and todos. -## 📦 Installation +## Installation -### Recommended: Install via ButterScripts +### Recommended: install via ButterScripts -The easiest way to install ButterBash is through the [ButterScripts](https://codeberg.org/justaguylinux/butterscripts) optional installer: +Install ButterBash through the [ButterScripts](https://codeberg.org/justaguylinux/butterscripts) optional installer: ```bash -# Clone and run butterscripts installer git clone https://codeberg.org/justaguylinux/butterscripts.git cd butterscripts/setup ./optional_tools.sh -# Select option 1: ButterBash ⭐ +# Select option 1: ButterBash ``` -ButterBash is featured as the top option in ButterScripts' optional tools, providing seamless integration with the broader ecosystem of development tools. +ButterBash is the first option in ButterScripts' optional tools and fits the wider development tool set. -### Direct Install +### Direct install 1. Clone the repository: + ```bash git clone https://codeberg.org/justaguylinux/butterbash.git cd butterbash ``` 2. Run the install script: + ```bash ./install.sh ``` 3. Reload your shell: + ```bash source ~/.bashrc ``` -> **Important**: ButterBash will backup your existing `.bashrc` and replace it with a modular configuration. This is the intended behavior for the full ButterBash experience. +> **Important**: ButterBash backs up your existing `.bashrc` and replaces it with a modular configuration. This is the intended behavior for the full ButterBash setup. -## 🗂️ Structure +## Structure ``` ~/.config/bash/ ├── aliases.bash # Command shortcuts ├── prompt.bash # Custom prompt with git branch ├── keybinds.bash # Keyboard shortcuts -├── fzf.bash # FZF configuration -├── zoxide.bash # zoxide smarter-cd hook +├── fzf.bash # FZF configuration +├── zoxide.bash # zoxide smarter-cd hook └── functions/ - ├── system.bash # System utilities - └── utils.bash # General utilities + ├── system.bash # System utilities + └── utils.bash # General utilities ``` -## 🎯 Core Functions +## Core functions -### Utility Functions ```bash mkcd directory # Create and enter directory extract file.tar.gz # Extract any archive type backup file.txt # Create timestamped backup -calc 2+2 # Quick calculations -sysinfo # Display system information +calc 2+2 # Quick calculations +sysinfo # Display system information ``` -## ⚙️ Configuration +## Configuration ### Customization Add your own customizations by creating files in `~/.config/bash/`: 1. Create a new module: `~/.config/bash/custom.bash` -2. It will be automatically loaded on next shell start +2. It loads automatically on the next shell start. -### Local Overrides +### Local overrides For machine-specific settings, create `~/.bashrc.local`: + ```bash # ~/.bashrc.local export CUSTOM_VAR="value" @@ -98,18 +95,19 @@ alias myalias="command" # Add custom configurations here ``` -### Integration with Other Projects +### Integration with other projects ButterBash works with other projects in the ButterScripts ecosystem: -- **[ButterScripts](https://codeberg.org/justaguylinux/butterscripts)** - Comprehensive setup scripts for Debian systems -- **[ButterNotes](https://codeberg.org/justaguylinux/butternotes)** - Note-taking and todo management extension -- Integrates with terminal emulators like WezTerm -- Compatible with window managers (DWM, BSPWM, etc.) -- Works alongside other development tools and configurations -#### Want Note-Taking and Todo Management? +- **[ButterScripts](https://codeberg.org/justaguylinux/butterscripts)** - Setup scripts for Debian systems. +- **[ButterNotes](https://codeberg.org/justaguylinux/butternotes)** - Notes and todo management. +- Terminal emulators such as WezTerm. +- Window managers such as dwm and bspwm. +- Other development tools and configurations. -ButterBash focuses on shell configuration. For productivity features like notes and todos, install **[ButterNotes](https://codeberg.org/justaguylinux/butternotes)**: +#### Notes and todo management + +ButterBash focuses on shell configuration. For notes and todos, install **[ButterNotes](https://codeberg.org/justaguylinux/butternotes)**: ```bash git clone https://codeberg.org/justaguylinux/butternotes.git @@ -117,62 +115,64 @@ cd butternotes && ./install.sh ``` ButterNotes works alongside ButterBash and adds: -- Intelligent note-taking with clipboard integration -- Todo management with markdown checkboxes -- Project organization with FZF -- Mobile sync compatibility -- Interactive terminal UI -## 🚀 Key Bindings +- Note-taking with clipboard integration. +- Todo management with Markdown checkboxes. +- Project organization with FZF. +- Mobile sync compatibility. +- Interactive terminal UI. + +## Key bindings -- **Ctrl+L**: Clear screen -- **↑/↓**: Search command history -- **Ctrl+R**: Reverse history search (with FZF if available) +- **Ctrl+L**: Clear screen. +- **Up/Down**: Search command history. +- **Ctrl+R**: Reverse history search (with FZF if available). -## 📋 Requirements +## Requirements - Bash 4.0+ - `install.sh` pulls in the tools the config uses: `fzf`, `ripgrep`, `eza`, `zoxide`. - - `fzf` - Fuzzy finder - - `ripgrep` - Fast grep alternative - - `eza` or `exa` - Modern ls replacement - - `zoxide` - Smarter cd (`z`, `zi`) + - `fzf` - Fuzzy finder. + - `ripgrep` - Fast grep alternative. + - `eza` or `exa` - Modern `ls` replacement. + - `zoxide` - Smarter `cd` (`z`, `zi`). - Optional clipboard integration (not pulled in automatically): - - `xclip` (X11) / `wl-clipboard` (Wayland) + - `xclip` (X11) or `wl-clipboard` (Wayland). + +To reinstall the core tools: -If you ever need to reinstall the core tools, there's a built-in helper: ```bash install_tools # reinstalls fzf and ripgrep ``` -## 🤝 Contributing +## Contributing -Contributions are welcome! Please visit our [Codeberg repository](https://codeberg.org/justaguylinux/butterbash) to: +Contributions are welcome. Visit the [Codeberg repository](https://codeberg.org/justaguylinux/butterbash) to: - Report issues: https://codeberg.org/justaguylinux/butterbash/issues -- Submit pull requests -- Join discussions +- Submit pull requests. +- Join discussions. -For major changes, please open an issue first to discuss your ideas. +For major changes, open an issue first. ## License -GPL-2.0 - See [LICENSE](LICENSE) for details. +GPL-2.0. See [LICENSE](LICENSE) for details. ## Support -Buy me a coffee +[Buy me a coffee](https://www.buymeacoffee.com/justaguylinux) ## Connect -- [YouTube](https://youtube.com/@justaguylinux) — tutorials and guides -- [Codeberg](https://codeberg.org/justaguylinux) — source code and projects -- [The Butter Lab](https://lab.justaguylinux.com) — Discourse forum -- [The Churn](https://justaguylinux.chat) — community chat (Fluxer) -- [Wiki](https://justaguy.wiki) — documentation and guides -- [Mastodon](https://fosstodon.org/@justaguylinux) — @justaguylinux@fosstodon.org -- [Butterbian](https://butterbian.org) — a Debian-based distro +- [YouTube](https://youtube.com/@justaguylinux) - tutorials and guides. +- [Codeberg](https://codeberg.org/justaguylinux) - source code and projects. +- [The Butter Lab](https://lab.justaguylinux.com) - Discourse forum. +- [The Churn](https://justaguylinux.chat) - community chat (Fluxer). +- [Wiki](https://justaguy.wiki) - documentation and guides. +- [Mastodon](https://fosstodon.org/@justaguylinux) - @justaguylinux@fosstodon.org. +- [Butterbian](https://butterbian.org) - a Debian-based distro. --- -Made with butter by JustAGuyLinux +Made with butter by JustAGuyLinux.