-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmacos.sh
executable file
·44 lines (40 loc) · 1.09 KB
/
macos.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
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
# Install Homebrew (if not installed)
if test ! "$(which brew)"; then
echo "Installing Homebrew for you."
# Install the correct homebrew for each OS type
if test "$(uname)" = "Darwin"; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" && echo "Homebrew installed"
fi
fi
inst_items=('alacritty' 'git' 'karabiner' 'tmux' 'zsh' 'wezterm' 'kitty')
u_dots=$PWD
for i in "${inst_items[@]}"; do
echo "installing $i ..."
cd "$i"
./install.sh
echo "$i installed"
cd "$u_dots"
done
echo "installing hammerspoon ..."
hammerspoon=$HOME/.hammerspoon
if [ ! -d "$hammerspoon" ]; then
git clone [email protected]:kulynyak/hammerspoon.git "$hammerspoon"
ln -s "$hammerspoon" "$u_dots/hammerspoon"
fi
cd hammerspoon
./install.sh
echo "hammerspoon installed"
cd "$u_dots"
echo "installing nvim ..."
nvim=$u_dots/nvim
if [ ! -d "$nvim" ]; then
git clone [email protected]:kulynyak/nvim.git
fi
cd nvim
/.install.sh
echo "nvim installed"
cd "$u_dots"
echo "installing Brewfile ..."
brew bundle --file="$u_dots/brew/Brewfile"
echo "Brewfile installed"