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>
This commit is contained in:
parent
8df7eab370
commit
b8f2634d93
7 changed files with 48 additions and 0 deletions
3
10-bin-path
Executable file
3
10-bin-path
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
# shellcheck shell=bash
|
||||
# Add ~/bin to PATH for personal scripts and tools
|
||||
path_prepend "$HOME/bin"
|
||||
7
10-rbenv-path
Normal file
7
10-rbenv-path
Normal file
|
|
@ -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
|
||||
7
20-debuginfod
Executable file
7
20-debuginfod
Executable file
|
|
@ -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
|
||||
5
20-sccache
Executable file
5
20-sccache
Executable file
|
|
@ -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
|
||||
13
30-aliases
Executable file
13
30-aliases
Executable file
|
|
@ -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
|
||||
10
50-cargo-completion
Executable file
10
50-cargo-completion
Executable file
|
|
@ -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
|
||||
3
50-rustup-completion
Executable file
3
50-rustup-completion
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
# shellcheck shell=bash
|
||||
# Enable bash completion for rustup (Rust toolchain manager)
|
||||
cached_completion rustup rustup completions bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue