♻️ Volta -> fish

This commit is contained in:
Marley Rae 2024-01-29 17:23:33 -08:00
parent eb9c9fe59f
commit b87524c063
6 changed files with 19 additions and 11 deletions

3
node/path.config.fish Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env fish
fish_add_path "$HOME/.volta/bin"

View file

@ -1,3 +0,0 @@
#!/usr/bin/env zsh
export PATH="$HOME/.volta/bin:$PATH"

3
node/volta.config.fish Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env fish
set -gx VOLTA_HOME "$HOME/.volta"

View file

@ -1,8 +1,6 @@
#!/usr/bin/env bash
# vim:set ft=bash:
#!/usr/bin/env fish
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& source "../script/utils.sh"
source "$DOT/script/utils.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -10,4 +8,4 @@ print_title "Volta & Node.js"
execute "curl https://get.volta.sh | bash -s -- --skip-setup" "Volta"
execute ". $DOT/node/path.zsh && volta install node" "Node.js LTS"
execute ". $DOT/node/path.config.fish && volta install node" "Node.js LTS"

View file

@ -1,3 +0,0 @@
#!/usr/bin/env zsh
export VOLTA_HOME="$HOME/.volta"

View file

@ -112,6 +112,16 @@ end
# Main #
################################################################################
# Ensure npm is available.
"$DOT/node/volta.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
set_os_prefs
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_title "Installers"
find . -name install.fish | while read installer; fish -c "$installer"; end