-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
83 lines (72 loc) · 2.6 KB
/
setup.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env bash
#Check if Homebrew is installed
which -s brew
if [[ $? != 0 ]] ; then
# Install Homebrew
echo 'Please install Homebrew by running the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
echo 'Installing Brew'
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
brew update
fi
#Upgrade installed formulae
brew upgrade
# Save Homebrew’s installed location
BREW_PREFIX=$(brew --prefix)
#Tools
brew install node
brew install nvm
brew install svn
mkdir ~/.nvm
brew install yarn
brew install git
#Taps
brew tap popcorn-official/popcorn-desktop https://github.com/popcorn-official/popcorn-desktop.git
#Apps
brew install --cask firefox
brew install --cask google-chrome
brew install --cask iterm2
brew install --cask docker
brew install --cask dbeaver-community
brew install --cask notion
brew install --cask spotify
brew install --cask vlc
brew install --cask visual-studio-code
brew install --cask zoom
brew install --cask discord
brew install --cask the-unarchiver
brew install --cask slack
brew install --cask sublime-text
brew install --cask microsoft-teams
brew install --cask microsoft-edge
brew install --cask steam
brew install --cask epic-games
brew install --cask spectacle
brew install --cask popcorn-time
# Remove outdated versions from the cellar.
brew cleanup
# Fonts
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
brew install --cask font-fira-code-nerd-font
brew install --cask font-fira-mono-for-powerline
brew install --cask font-fira-mono-nerd-font
brew install --cask font-hack-nerd-font
brew install --cask font-menlo-for-powerline
brew install --cask font-meslo-for-powerline
brew install --cask font-source-code-pro
# powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
# Plugins
git clone https://github.com/zsh-users/zsh-docker.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-docker
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install
# Setup Terminal - Oh My Zsh
brew install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Download and config ZSHRC
curl -o ~/.zshrc $1
sed -i '' 's/%USERNAME%/'$(whoami)'/g' ~/.zshrc
source ~/.zshrc
sudo usermod --shell $(which zsh) $USER