Commit aa4c4ed6851d

Vincent Demeester <vincent@sbr.pm>
2026-02-11 06:26:06
fix: shellcheck warnings in shell-completions scripts
Added SC1090 disable directives for dynamic sources in bash-complete.bash. Changed zsh-capture.zsh shebang to use env and added shellcheck shell=bash directive.
1 parent e2b8ca4
Changed files (2)
dots
pi
agent
extensions
shell-completions
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"