Chief

Transform your terminal experience with organized bash functions, aliases, and a powerful plugin system.

This project is maintained by randyoyarzabal

πŸš€ Chief

Bash Plugin Manager & Terminal Enhancement Tool

GitHub release Documentation

Chief is a lightweight, powerful Bash library system that helps you organize your shell environment through a plugin-based architecture. Think of it as a package manager for your bash functions, aliases, and tools.

⚑ Quick Install

bash -c "$(curl -fsSL https://raw.githubusercontent.com/randyoyarzabal/chief/refs/heads/main/tools/install.sh)"

That’s it! Restart your terminal and start using Chief.

Disconnected Installation

For environments without git connectivity:

# Download Chief, transfer to target system, then:
./tools/install.sh --local

⚑ Quick Start: Portable Setup

Real-world example: Set up Chief with remote plugins and vault that follows you across all systems.

πŸš€ One-Time Setup (any new system)

# 1. Install Chief (one command)
bash -c "$(curl -fsSL https://raw.githubusercontent.com/randyoyarzabal/chief/refs/heads/main/tools/install.sh)"

# 2. Configure your plugin repository (replace with your repo)
chief.config_set -y PLUGINS_GIT_REPO="git@github.com:yourusername/my-plugins.git"
chief.config_set -y PLUGINS_PATH="${HOME}/chief_plugins"
chief.config_set -y PLUGINS_GIT_BRANCH="main"
chief.config_set -y PLUGINS_GIT_PATH="bash/plugins"   # or "" for repo root, this is plugins path relative to PLUGINS_PATH
chief.config_set -y PLUGINS_GIT_AUTOUPDATE="false"    # manual updates
chief.config_set -y PLUGINS_TYPE="remote"             # πŸ”‘ Enable remote sync

# 3. (Optional) Enable multi-line prompt, useful when current working dir is deep.
chief.config_set -y MULTILINE_PROMPT=true 

# 4. (Optional) Load your encrypted secrets (if exists)
chief.vault_file-load  # Team vault (.chief_shared-vault - if exists)
chief.vault_file-load ~/.my-personal-vault     # Personal vault

πŸ“– For detailed vault setup and management, see: Vault Configuration

🎯 Result

πŸš€ 30-Second Demo

# See what's available
chief.help

# See available user and core plugin tools
chief.help plugins

# Find any function, alias or environment variable
chief.whereis git_status

# Create a custom function
chief.plugin mytools

✨ Key Features

πŸ”Œ Available Plugins

Chief comes with 8 powerful plugins providing 58+ functions for your daily workflow:

πŸ” Discovery & Help

πŸ” Vault Plugin (2 functions)

☸️ OpenShift/Kubernetes Plugin (9 functions)

πŸ”’ SSL/TLS Plugin (4 functions)

πŸ”‘ SSH Plugin (3 functions)

πŸ› οΈ System Utilities Plugin (18 functions)

πŸ”§ Git Plugin (16 functions)

🐍 Python Plugin (4 functions)

☁️ AWS Plugin (2 functions)

πŸ›‘οΈ Safety First: Dry-Run Examples

Preview potentially destructive operations safely:

# SAFE: Preview what a USB creation would do (before potentially erasing a drive)
chief.etc_create-bootusb -n ubuntu.iso 2

# SAFE: See what files git reset --hard would affect
chief.git_reset-hard -n

# SAFE: Preview file permission changes
chief.etc_chmod-f -n 644 ~/scripts/

# SAFE: Preview OpenShift resource cleanup
chief.oc_clean-olm -n

πŸ›‘οΈ Safe for Everyone

πŸ“– Complete Documentation

Ready to dive deeper? Explore our comprehensive guides:

πŸ”§ Getting Started - Installation, setup, and first steps

πŸ“– User Guide - Core features, commands, and daily workflows

πŸ› οΈ Plugin Development - Create and share your own plugins

βš™οΈ Configuration - Advanced setup and team collaboration

πŸ“‹ Reference - Complete command reference and troubleshooting

πŸ› Bug Reports & Support

Found a bug or need help? We’re here to help! Please create an issue on GitHub:

πŸ“ Report an Issue

When reporting issues, please include:

This helps us quickly identify and fix issues!

🀝 Contributing

Contributions welcome! See our reference documentation for guidelines.

πŸ“„ License

MIT License - see LICENSE file for details.