Speed up shell startup 9x (1.9s → 0.2s)
Lazy-load Intel oneAPI setvars.sh (~1.5s) via wrapper functions that source the environment on first use of icc/icx/ifort/etc. Cache all shell completion outputs to ~/.cache/bash.d/ so they are sourced from disk instead of regenerated via subprocess on every shell start. Cache invalidates automatically when the tool binary is updated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a9875dceec
commit
6a00847d4e
11 changed files with 83 additions and 23 deletions
|
|
@ -1,3 +1,3 @@
|
|||
# shellcheck shell=bash
|
||||
# Enable bash completion for uv (Python package manager)
|
||||
command -v uv &>/dev/null && eval "$(uv generate-shell-completion bash)"
|
||||
cached_completion uv uv generate-shell-completion bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue