♻️ Volta -> fish
This commit is contained in:
parent
eb9c9fe59f
commit
b87524c063
6 changed files with 19 additions and 11 deletions
3
node/path.config.fish
Normal file
3
node/path.config.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
fish_add_path "$HOME/.volta/bin"
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env zsh
|
|
||||||
|
|
||||||
export PATH="$HOME/.volta/bin:$PATH"
|
|
3
node/volta.config.fish
Normal file
3
node/volta.config.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
set -gx VOLTA_HOME "$HOME/.volta"
|
|
@ -1,8 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env fish
|
||||||
# vim:set ft=bash:
|
|
||||||
|
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")" \
|
source "$DOT/script/utils.fish"
|
||||||
&& source "../script/utils.sh"
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
@ -10,4 +8,4 @@ print_title "Volta & Node.js"
|
||||||
|
|
||||||
execute "curl https://get.volta.sh | bash -s -- --skip-setup" "Volta"
|
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"
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env zsh
|
|
||||||
|
|
||||||
export VOLTA_HOME="$HOME/.volta"
|
|
|
@ -112,6 +112,16 @@ end
|
||||||
# Main #
|
# Main #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# Ensure npm is available.
|
||||||
|
|
||||||
|
"$DOT/node/volta.fish"
|
||||||
|
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
set_os_prefs
|
||||||
|
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
print_title "Installers"
|
print_title "Installers"
|
||||||
find . -name install.fish | while read installer; fish -c "$installer"; end
|
find . -name install.fish | while read installer; fish -c "$installer"; end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue