-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit_setup.sh
More file actions
40 lines (34 loc) · 920 Bytes
/
init_setup.sh
File metadata and controls
40 lines (34 loc) · 920 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
35
36
37
38
39
40
#!/bin/bash
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Install Homebrew if not installed
if ! command_exists brew; then
echo "Homebrew not found. Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Homebrew is already installed."
fi
# Install Poetry using Homebrew
if ! command_exists poetry; then
echo "Installing Poetry..."
brew install poetry
else
echo "Poetry is already installed."
fi
# Install npm using Homebrew
if ! command_exists npm; then
echo "Installing npm..."
brew install npm
else
echo "npm is already installed."
fi
# Install nodemon globally using npm
if ! command_exists nodemon; then
echo "Installing nodemon globally..."
npm install -g nodemon
else
echo "nodemon is already installed."
fi
echo "Setup complete."