Skip to content
Myr

[Refactor] Reduce one more `sed` & pipe to speedup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Peter Dave Hello · committed by Jordan Harband · parent 6534568 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
1081 unmodified lines
1082 s#^v#${NVM_NODE_PREFIX}/v#;1083 \\#${SEARCH_PATTERN}# !d;1084 " \1085 -e 's#^\([^/]\{1,\}\)/\(.*\)$#\2.\1#;' \1086 -e 's#\(.*\)\.\([^\.]\{1,\}\)$#\2-\1#;' \1087 -e "s#^${NVM_NODE_PREFIX}-##;" \1088 | command sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n \1087 | command sed -e 's#\(.*\)\.\([^\.]\{1,\}\)$#\2-\1#;' \1088 -e "s#^${NVM_NODE_PREFIX}-##;" \1089 )"1090 fi1091 fi1092
2516 unmodified lines