feat: Support for drop-in completions

`shell_config.sh` has support for tool completions using the
`write_completion_snippet` and `write_alias_snippet`
This commit is contained in:
2026-06-27 07:58:10 +05:30
parent f158c4e913
commit 15d3a1a59d
3 changed files with 36 additions and 8 deletions

View File

@@ -71,6 +71,7 @@ install_bootstrap() {
mkdir -p "$routes_dir"
mkdir -p "$routes_dir/env.d"
mkdir -p "$routes_dir/aliases.d"
mkdir -p "$routes_dir/completions.d"
# List of all files to download/copy
local files=(
@@ -142,6 +143,7 @@ export BOOTSTRAP_DIR="$HOME/.config/bootstrap"
[ -f "$BOOTSTRAP_DIR/b.sh" ] && . "$BOOTSTRAP_DIR/b.sh"
for f in "$BOOTSTRAP_DIR/env.d/"*.sh; do [ -r "$f" ] && . "$f"; done
for f in "$BOOTSTRAP_DIR/aliases.d/"*.sh; do [ -r "$f" ] && . "$f"; done
for f in "$BOOTSTRAP_DIR/completions.d/"*.sh; do [ -r "$f" ] && . "$f"; done
# <<< bootstrap-cli setup <<<
EOF