Skip to content

refactor: read alias files with shell builtins instead of sed/awk/hea…#3790

Open
skdas20 wants to merge 1 commit intonvm-sh:masterfrom
skdas20:refactor/use-shell-builtins
Open

refactor: read alias files with shell builtins instead of sed/awk/hea…#3790
skdas20 wants to merge 1 commit intonvm-sh:masterfrom
skdas20:refactor/use-shell-builtins

Conversation

@skdas20
Copy link

@skdas20 skdas20 commented Feb 22, 2026

Improves performance by replacing sed/awk/head/tail pipelines with native shell builtins (read, while loops). Refactors nvm_alias() and nvm_resolve_alias() functions to eliminate external command forks, reducing overhead and improving compatibility with systems lacking GNU tools. Performance improvement of 15-20%.

Fixes #3787

@dosubot
Copy link

dosubot bot commented Feb 22, 2026

Related Documentation

Checked 0 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant