-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_package_manager.zsh
More file actions
executable file
·34 lines (28 loc) · 1003 Bytes
/
Copy pathsetup_package_manager.zsh
File metadata and controls
executable file
·34 lines (28 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env zsh
echo "\n## HOMEBREW SETUP ##\n"
if exists brew; then
echo "brew exists, skipping install"
else
echo "brew doesn't exist, continuing with install"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "\n## NODE SETUP ##\n"
# Node versions are managed with `n`, which is in the Brewfile.
# See `zshenv` for the setting of the `N_PREFIX` variable,
# thus making it available below during the first install.
# See `zshrc` where `N_PREFIX/bin` is added to `$path`.
if exists $N_PREFIX/bin/node; then
echo "Node $($N_PREFIX/bin/node --version) & NPM $($N_PREFIX/bin/npm --version) already installed with n"
else
echo "Installing n as node version management"
brew install n
echo "Installing Node & NPM with n..."
n latest
fi
echo "\n## ANTIDOTE SETUP ##\n"
if brew list antidote; then
echo "antidote exists, skipping install"
else
echo "antidote doesn't exist, continuing with install"
brew install antidote
fi