Shell Aliases & Wrapper Scripts
A quick-reference inventory of the shell aliases, Bash functions, and
wrapper scripts that support the Documentation System workflow.
Aliases live in Brad’s dotfiles repo
(git@github.com:stancel/brads-bash-settings.git, checked out at
~/). They are decomposed across several sourced files loaded by
~/.bash_aliases.
Source Files
Aliases and functions are loaded in this order by ~/.bash_aliases:
~/.bash_main_vars— environment variables (must be set first).~/.bash_aliases_all— OS-independent aliases (navigation, templates, publishing, docs-* shortcuts).~/.bash_aliases_machine_inventory— SSH targets for servers.~/.bash_aliases_ansible— Ansible-specific options.~/.bash_functions— Bash functions and theadd-publish-template-*aliases that call wrapper scripts.~/.bash_aliases_ubuntuor~/.bash_aliases_mac— OS-specific overrides loaded last.
Template Editing (templates-edit-*)
Open a cookiecutter template in VS Code for editing. All templates
now live in the consolidated stancel/doc-templates repo at
~/DevOps-Personal/Templates/.
Alias |
Template |
|---|---|
|
|
|
|
|
|
|
|
Note
templates-edit-add-devops-section and
templates-edit-add-ai-section do not exist yet. To add them,
append to ~/.bash_aliases_all:
alias templates-edit-add-devops-section='cd ${HOME}/DevOps-Personal/Templates/cookiecutter-add-devops-section && code workspace.code-workspace'
alias templates-edit-add-ai-section='cd ${HOME}/DevOps-Personal/Templates/cookiecutter-add-ai-section && code workspace.code-workspace'
Section Creation (add-publish-template-*)
Wrapper scripts that cd to the target repo and invoke
cookiecutter with the correct local template. Defined in
~/.bash_functions.
Alias |
Script |
Target repo |
|---|---|---|
|
|
Server_Programs |
|
|
Linux |
|
|
OpsInsights clients |
New wrapper scripts (created 2026-04-17, not yet aliased):
Script |
Template |
Target repo |
|---|---|---|
|
|
DevOps-Docs ( |
|
|
AI-Docs ( |
To wire these into the alias system, append to ~/.bash_functions:
alias add-publish-template-devops-section='${HOME}/.local/bin/add-devops-section.sh'
alias add-publish-template-ai-section='${HOME}/.local/bin/add-ai-section.sh'
Publishing Shortcuts (publish-*)
Build documentation into various output formats. Defined in
~/.bash_aliases_all.
Alias |
Command |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Documentation System Scripts (docs-*)
Standalone scripts at ~/.local/bin/. These are not aliases —
they are full Bash scripts called directly or via make targets.
Script |
Purpose |
|---|---|
|
Per-repo pyenv virtualenv lifecycle ( |
|
Fleet-wide drift detector. Checks every registered repo against the version matrix, baseline files, and conf.py standards. |
|
Restarts documentation containers and clears caches. Supports
|
|
Adds a project’s docs to an aggregation hub. Interactive ( |
|
Webhook-related sync operations. |
|
Low-level pyenv virtualenv install/remove. |
Consolidated Template Repository
All cookiecutter templates for the Documentation System live in a single Git repo:
GitHub:
stancel/doc-templatesLocal:
~/DevOps-Personal/Templates/Templates: -
cookiecutter-add-brad-server-program(Server_Programs) -cookiecutter-add-linux-section(Linux) -cookiecutter-add-devops-section(DevOps-Docs) — new -cookiecutter-add-ai-section(AI-Docs) — new -cookiecutter-add-opsinsights-client-doc(OpsInsights clients)
The former individual GitHub repos
(stancel/cookiecutter-add-brad-server-program and
stancel/cookiecutter-add-linux-section) have been archived.
ProcessFast/cookiecutter-add-opsinsights-client-doc remains
active on GitHub but the local workflow now uses the consolidated
repo’s copy.