-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·42 lines (33 loc) · 1.05 KB
/
bootstrap.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
#!/bin/sh
RED='\033[0;31m'
NC='\033[0m'
# install homebrew and homebrew apps
if ! type brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/standag/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
if ! type stow; then
brew install stow
fi
if [[ -f ~/.config/fish/config.fish ]]; then
rm ~/.config/fish/config.fish
fi
for item in `ls`; do
if [[ -d $item ]]; then
stow $item
fi
done
for brew_file in `ls Brewfile*`; do
if [[ $brew_file != *.json ]]; then
echo Instaling $brew_file ...
brew bundle install --file $brew_file
fi
done
if [[ -d ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then
echo "packer installed"
else
echo "packer installing..."
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
echo "${RED}Don't forgot install fisher plugins! Hint: fisher update$NC"