♻️ 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
|
||||
# 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"
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
export VOLTA_HOME="$HOME/.volta"
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue