-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosx.sh
32 lines (29 loc) · 848 Bytes
/
osx.sh
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
#!/bin/bash
# Check if on macOS
curl -sS https://starship.rs/install.sh | sh -s -- -f
if [[ $(uname) == "Darwin" ]]; then
# Check if Homebrew is installed
if ! command -v brew &> /dev/null; then
echo "Homebrew is not installed. Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew tap homebrew/cask-fonts
# Install packages using Homebrew
brew_packages=(
"fzf"
"font-victor-mono-nerd-font"
"exa"
"xwmx/taps/nb"
"zsh-autosuggestions"
"zsh-syntax-highlighting"
)
for package in "${brew_packages[@]}"; do
if ! brew list "$package" &> /dev/null; then
echo "Installing $package..."
brew install "$package"
else
echo "$package is already installed."
fi
done
$(brew --prefix)/opt/fzf/install
fi