-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·66 lines (54 loc) · 1.75 KB
/
setup.sh
File metadata and controls
executable file
·66 lines (54 loc) · 1.75 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
echo "Setting up your MacBook"
#Check if HomeBrew exits else install it
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
#.zshrc
rm -rf $HOME/.zshrc
ln -sv $HOME/.dotfiles/.zshrc $HOME/.zshrc
#.zprofile
rm -rf $HOME/.zprofile
ln -sv $HOME/.dotfiles/.zprofile $HOME/.zprofile
#Update HomeBrew
brew update
#Homebrew Bundle Install
brew tap homebrew/bundle
#Install all dependencies in Brewfile in current directory
brew bundle
brew cleanup
#Set default shell as Zsh
chsh -s /usr/local/bin/zsh
#NVM Install
echo "Installing Node Version Manager"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
#Creating Dev Directories
mkdir -p $HOME/Coding/js
mkdir -p $HOME/.config
mkdir -p $HOME/.oh-my-zsh/custom
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
# Removes dotfiles form $HOME (if exists) and symlinks the .dotfiles
#.gitconfig
rm -rf $HOME/.gitconfig
ln -sv $HOME/.dotfiles/.gitconfig $HOME/.gitconfig
#nvim
rm -rf $HOME/.config/nvim
ln -sv $HOME/.dotfiles/.config/nvim $HOME/.config/nvim
#alacritty
rm -rf $HOME/.config/alacritty
ln -sv $HOME/.dotfiles/.config/alacritty $HOME/.config/alacritty
#tmux.conf
rm -rf $HOME/.tmux.conf
ln -sv $HOME/.dotfiles/.tmux.conf $HOME
#Bin Folder
rm -rf $HOME/bin
ln -sv $HOME/.dotfiles/bin $HOME
#Aliases
rm -rf $HOME/.oh-my-zsh/custom/aliases.zsh
ln -sv $HOME/.dotfiles/aliases.zsh $HOME/.oh-my-zsh/custom/aliases.zsh
#NPM Globals
./npm.sh
# Set macOS preferences
# We will run this last because this will reload the shell
#source .macos