Files
config-bash/completion.d/aws
T
Xavier LogeraisandCopilot 158c3f99f0 perf: remove unnecessary subshells in command -v checks
Replace 'if (command -v x &>/dev/null); then' with
'if command -v x &>/dev/null; then' across completion.d, rc.d and
profile.d. Parentheses forced a subshell fork for every 'if' check,
which is unnecessary overhead since command -v runs fine in the
current shell.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-28 18:17:13 +02:00

4 lines
111 B
Plaintext

if command -v aws &>/dev/null && command -v aws_completer &>/dev/null; then
complete -C aws_completer aws
fi