Transform your terminal experience with organized bash functions, aliases, and a powerful plugin system.
This project is maintained by randyoyarzabal
Bash Plugin Manager & Terminal Enhancement Tool
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.
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.
For environments without git connectivity:
# Download Chief, transfer to target system, then:
./tools/install.sh --local
Real-world example: Set up Chief with remote plugins and vault that follows you across all systems.
# 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
# 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
chief.whereis
Chief comes with 8 powerful plugins providing 58+ functions for your daily workflow:
chief.help
- Interactive help system with plugin browsingchief.whereis <function>
- Find any function across all pluginschief.plugins_*
- Plugin management and discovery toolschief.vault_file-edit
- Edit encrypted files securelychief.vault_file-load
- Load encrypted environment variableschief.oc_get-all-objects
- Comprehensive resource discovery with filteringchief.oc_clean-olm
- OLM cleanup with selective targetingchief.oc_clean-replicasets
- Clean up old replica sets with safety checkschief.oc_show-stuck-resources
- Troubleshoot stuck resources with auto-fixchief.oc_delete-stuck-ns
- Force delete terminating namespaceschief.oc_approve-csrs
- Batch CSR approval with interactive modechief.oc_login
- Enhanced login with context managementchief.oc_vault-kubeadmin
- Display kubeadmin credentials from Vaultchief.oc_whoami
- Show current user, API server, and console informationchief.ssl_create-ca
- Create certificate authorities with minimal setupchief.ssl_create-tls-cert
- Generate TLS certificates signed by your CAchief.ssl_renew-tls-cert
- Renew existing certificates with smart parameter extractionchief.ssl_view-cert
- Analyze certificates with multiple display optionschief.ssl_get-cert
- Download certificates from remote serverschief.ssh_create-keypair
- Generate SSH key pairs with best practiceschief.ssh_get-publickey
- Extract and display public keyschief.ssh_rm-host
- Clean known_hosts entries safelychief.etc_create-bootusb
- Create bootable USB drives safelychief.etc_folder-sync
- Professional rsync-based directory synchronizationchief.etc_copy-dotfiles
- Copy configuration files with backup supportchief.etc_shared_term_*
- Create and manage shared tmux sessionschief.etc_chmod_*
- Enhanced file permission managementchief.etc_mount-share
- Network share mounting utilitieschief.git_clone
- Enhanced git cloning with safety checkschief.git_commit
- Streamlined commit workflowchief.git_reset_*
- Safe reset operations with dry-run supportchief.git_branch
- Advanced branch managementchief.git_config-user
- Quick user configuration setupchief.python_create-ve
- Virtual environment creation and setupchief.python_start-ve
- Activate virtual environmentschief.python_stop-ve
- Deactivate environmentschief.python_ve-dep
- Install dependencies from requirements.txtchief.aws_set-role
- Switch between AWS IAM roleschief.aws_export-creds
- Export AWS credentials to environmentPreview 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
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
Found a bug or need help? Weβre here to help! Please create an issue on GitHub:
When reporting issues, please include:
uname -a
to get your system detailschief.help
to see the current versionThis helps us quickly identify and fix issues!
Contributions welcome! See our reference documentation for guidelines.
MIT License - see LICENSE file for details.