From b8f2634d93b98797cbf060b2a0d083607f8a0d44 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 9 Mar 2026 21:19:13 +0100 Subject: [PATCH] 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 --- 10-bin-path | 3 +++ 10-rbenv-path | 7 +++++++ 20-debuginfod | 7 +++++++ 20-sccache | 5 +++++ 30-aliases | 13 +++++++++++++ 50-cargo-completion | 10 ++++++++++ 50-rustup-completion | 3 +++ 7 files changed, 48 insertions(+) create mode 100755 10-bin-path create mode 100644 10-rbenv-path create mode 100755 20-debuginfod create mode 100755 20-sccache create mode 100755 30-aliases create mode 100755 50-cargo-completion create mode 100755 50-rustup-completion diff --git a/10-bin-path b/10-bin-path new file mode 100755 index 0000000..67f6f7d --- /dev/null +++ b/10-bin-path @@ -0,0 +1,3 @@ +# shellcheck shell=bash +# Add ~/bin to PATH for personal scripts and tools +path_prepend "$HOME/bin" diff --git a/10-rbenv-path b/10-rbenv-path new file mode 100644 index 0000000..e68d66c --- /dev/null +++ b/10-rbenv-path @@ -0,0 +1,7 @@ +# shellcheck shell=bash +# Set up rbenv (Ruby version manager) +# Disabled by default (chmod +x to enable) +path_prepend "$HOME/.rbenv/bin" +if command -v rbenv &>/dev/null; then + eval "$(rbenv init - bash)" +fi diff --git a/20-debuginfod b/20-debuginfod new file mode 100755 index 0000000..61953e7 --- /dev/null +++ b/20-debuginfod @@ -0,0 +1,7 @@ +# shellcheck shell=bash +# Configure debuginfod for automatic debug symbol downloads +# shellcheck disable=SC2254 +if compgen -G '/usr/lib/*/libdebuginfod.so*' &>/dev/null; then + export DEBUGINFOD_URLS="https://debuginfod.debian.net/ https://debuginfod.fedoraproject.org/" + export DEBUGINFOD_PROGRESS=1 +fi diff --git a/20-sccache b/20-sccache new file mode 100755 index 0000000..1f98288 --- /dev/null +++ b/20-sccache @@ -0,0 +1,5 @@ +# shellcheck shell=bash +# Configure sccache (shared compilation cache) +if command -v sccache &>/dev/null; then + export SCCACHE_CACHE_SIZE="40G" +fi diff --git a/30-aliases b/30-aliases new file mode 100755 index 0000000..b76ca1c --- /dev/null +++ b/30-aliases @@ -0,0 +1,13 @@ +# shellcheck shell=bash +# Miscellaneous aliases and settings + +export LESS=-R + +if command -v ag &>/dev/null; then + alias ag='ag --pager=less -A3 -B3 -C2' +fi + +# Show task list on interactive shell startup +if [[ $- == *i* ]] && command -v task &>/dev/null; then + task +fi diff --git a/50-cargo-completion b/50-cargo-completion new file mode 100755 index 0000000..607e225 --- /dev/null +++ b/50-cargo-completion @@ -0,0 +1,10 @@ +# 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 diff --git a/50-rustup-completion b/50-rustup-completion new file mode 100755 index 0000000..81f88fc --- /dev/null +++ b/50-rustup-completion @@ -0,0 +1,3 @@ +# shellcheck shell=bash +# Enable bash completion for rustup (Rust toolchain manager) +cached_completion rustup rustup completions bash