-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·52 lines (42 loc) · 1.11 KB
/
install.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
45
46
47
48
49
50
51
52
#!/bin/zsh
###
# HOMEBREW
if [[ $(command -v brew) == "" ]]; then
echo "Installing Hombrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >>$HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
else
echo "Updating Homebrew"
brew update
fi
brew analytics off
if [ -f "$HOME/dotfiles/Brewfile" ]; then
echo "Updating homebrew bundle..."
brew bundle --file="$HOME/dotfiles/Brewfile"
else
echo "ERROR! Brewfile not found. Exiting..."
exit 1
fi
brew upgrade
brew cleanup
###
# INITIALIZE DOTFILES
###
echo 'Stowing all dotfiles...'
stow */
echo 'Starting Fish and installing plugins...'
fish
fisher update
fnm completions >>~/.config/fish/completions/fnm.fish
echo 'Installing global node packages...'
npm install -g neovim tldr
echo 'Installing Rust...'
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fish_add_path ~/.cargo/bin
echo 'Installing Bob and Neovim...'
cargo install bob-nvim
bob install stable
bob use stable
echo 'Installing Bun...'
curl -fsSL https://bun.sh/install | bash