From bdef726a38ee638c1eda51c66602c684a61a07b2 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 6 Jul 2021 00:40:05 -0700 Subject: [PATCH] Add alias to get current versions of node --- node/.config/profile/profile.d/node.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 node/.config/profile/profile.d/node.sh diff --git a/node/.config/profile/profile.d/node.sh b/node/.config/profile/profile.d/node.sh new file mode 100644 index 0000000..01b2001 --- /dev/null +++ b/node/.config/profile/profile.d/node.sh @@ -0,0 +1,5 @@ +# shellcheck shell=bash +#ft=sh + +alias node_current="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep -v '-' | head -n 2 | tail -n 1 | cut -f 1" +alias node_lts="curl --silent https://nodejs.org/dist/index.tab | cut -f 1,10 | grep '-' | head -n 1 | cut -f 1"