Skip to content

Commit

Permalink
chore: use rtx-nodejs instead of asdf-nodejs
Browse files Browse the repository at this point in the history
Fixes #287
  • Loading branch information
jdx committed Mar 11, 2023
1 parent 4c82943 commit b836ee1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions scripts/update-shorthand-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git clone --depth 1 https://github.com/asdf-vm/asdf-plugins
rm -f src/default_shorthands.rs

num_plugins=$(find asdf-plugins/plugins/* | wc -l | tr -d ' ')
num_plugins=$((num_plugins + 4)) # + for custom aliases (node, tiny, etc)
num_plugins=$((num_plugins + 5)) # + for custom aliases (node, tiny, etc)

cat >src/default_shorthands.rs <<EOF
// This file is generated by scripts/update-shorthand-repo.sh
Expand All @@ -31,7 +31,8 @@ done
cat >>src/default_shorthands.rs <<EOF
// rtx custom shorthands
("go", "https://github.com/kennyp/asdf-golang.git"),
("node", "https://github.com/asdf-vm/asdf-nodejs.git"),
("node", "https://github.com/jdxcode/rtx-nodejs.git"),
("nodejs", "https://github.com/jdxcode/rtx-nodejs.git"),
("python", "https://github.com/jdxcode/rtx-python.git"),
("tiny", "https://github.com/jdxcode/rtx-tiny.git"),
];
Expand Down
5 changes: 3 additions & 2 deletions src/default_shorthands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub static DEFAULT_SHORTHANDS: Lazy<HashMap<&'static str, &'static str>> =

#[rustfmt::skip]
#[cfg_attr(coverage_nightly, no_coverage)]
const DEFAULT_SHORTHAND_LIST: [(&str, &str); 618] = [
const DEFAULT_SHORTHAND_LIST: [(&str, &str); 619] = [
// asdf original shorthands from https://github.com/asdf-vm/asdf-plugins
("1password-cli", "https://github.com/NeoHsu/asdf-1password-cli.git"),
("R", "https://github.com/asdf-community/asdf-r.git"),
Expand Down Expand Up @@ -626,7 +626,8 @@ const DEFAULT_SHORTHAND_LIST: [(&str, &str); 618] = [
("zprint", "https://github.com/carlduevel/asdf-zprint.git"),
// rtx custom shorthands
("go", "https://github.com/kennyp/asdf-golang.git"),
("node", "https://github.com/asdf-vm/asdf-nodejs.git"),
("node", "https://github.com/jdxcode/rtx-nodejs.git"),
("nodejs", "https://github.com/jdxcode/rtx-nodejs.git"),
("python", "https://github.com/jdxcode/rtx-python.git"),
("tiny", "https://github.com/jdxcode/rtx-tiny.git"),
];

0 comments on commit b836ee1

Please sign in to comment.