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,4 +1,3 @@
|
|||
# shellcheck shell=bash
|
||||
# shellcheck disable=SC1090
|
||||
# Enable bash completion for bun (JavaScript runtime & package manager)
|
||||
command -v bun &>/dev/null && . <(bun completions)
|
||||
cached_completion bun bun completions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue