Commit aa4c4ed6851d
Changed files (2)
dots
pi
agent
extensions
shell-completions
scripts
dots/pi/agent/extensions/shell-completions/scripts/bash-complete.bash
@@ -12,12 +12,14 @@ __cmd=${__cmdline%% *}
# Source bash-completion framework if available
for f in /usr/share/bash-completion/bash_completion /etc/bash_completion /opt/homebrew/etc/bash_completion /opt/homebrew/share/bash-completion/bash_completion; do
+ # shellcheck disable=SC1090
[[ -f "$f" ]] && { source "$f" 2>/dev/null; break; }
done
# Also try to source command-specific completions directly (macOS/Homebrew)
for dir in /opt/homebrew/etc/bash_completion.d /usr/share/bash-completion/completions /etc/bash_completion.d; do
for f in "$dir/$__cmd" "$dir/$__cmd.bash" "$dir/${__cmd}-completion.bash"; do
+ # shellcheck disable=SC1090
[[ -f "$f" ]] && source "$f" 2>/dev/null
done
done
dots/pi/agent/extensions/shell-completions/scripts/zsh-capture.zsh
@@ -1,4 +1,5 @@
-#!/bin/zsh
+#!/usr/bin/env zsh
+# shellcheck disable=all
# Simple zsh completion capture using _complete_help
# Usage: zsh-capture.zsh "command line" "/path/to/cwd"