bash.d/50-cargo-completion
Ole-Morten Duesund b8f2634d93 Integrate old-svovel config: paths, aliases, completions
Add ~/bin PATH, rbenv (disabled), debuginfod, sccache, LESS/ag/task
aliases, and cargo/rustup completions. Removes old-svovel/ directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 21:19:13 +01:00

10 lines
323 B
Text
Executable file

# shellcheck shell=bash
# Enable bash completion for cargo (Rust package manager)
if command -v rustc &>/dev/null; then
_cargo_comp="$(rustc --print sysroot)/etc/bash_completion.d/cargo"
if [[ -f "$_cargo_comp" ]]; then
# shellcheck source=/dev/null
. "$_cargo_comp"
fi
unset _cargo_comp
fi