diff --git a/.chezmoiignore b/.chezmoiignore index 433cfa5..3de5f34 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,6 +1,5 @@ /hellotech/ /install-scripts/ -/node/ /old-scripts/ /ripgrep/ /ruby/ diff --git a/node/.config/npm/npmrc b/dot_config/npm/npmrc.tmpl similarity index 57% rename from node/.config/npm/npmrc rename to dot_config/npm/npmrc.tmpl index dcf30ac..0b9d800 100644 --- a/node/.config/npm/npmrc +++ b/dot_config/npm/npmrc.tmpl @@ -1,2 +1,4 @@ +{{ if lookPath "node" -}} prefix=${HOME}/.local cache=${XDG_CACHE_HOME}/npm +{{- end }} diff --git a/node/.config/profile/env.d/node.env b/dot_config/profile/env.d/node.env.tmpl similarity index 75% rename from node/.config/profile/env.d/node.env rename to dot_config/profile/env.d/node.env.tmpl index 5191816..ec43c6e 100644 --- a/node/.config/profile/env.d/node.env +++ b/dot_config/profile/env.d/node.env.tmpl @@ -1,4 +1,6 @@ +{{ if lookPath "node" -}} # shellcheck shell=bash #ft=sh # shellcheck disable=SC2034 NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" +{{- end }} diff --git a/node/.config/profile/profile.d/node.sh b/dot_config/profile/profile.d/node.sh similarity index 100% rename from node/.config/profile/profile.d/node.sh rename to dot_config/profile/profile.d/node.sh diff --git a/node/.local/bin/install-node-home b/dot_local/bin/executable_install-node-home old mode 100755 new mode 100644 similarity index 100% rename from node/.local/bin/install-node-home rename to dot_local/bin/executable_install-node-home diff --git a/node/.local/bin/install-node-system b/dot_local/bin/executable_install-node-system old mode 100755 new mode 100644 similarity index 100% rename from node/.local/bin/install-node-system rename to dot_local/bin/executable_install-node-system diff --git a/node/.local/share/buddy-up/includes/node.sh b/dot_local/share/buddy-up/includes/node.sh similarity index 100% rename from node/.local/share/buddy-up/includes/node.sh rename to dot_local/share/buddy-up/includes/node.sh