-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacOS_install.sh
executable file
·63 lines (49 loc) · 2.02 KB
/
macOS_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
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
set -xe
# Install homebrew
if type brew &> /dev/null; then
echo "Homebrew already installed"
else
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
# Install GNU `sed`, overwriting the built-in `sed`.
brew install coreutils diffutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt grep
# Install some other useful utilities like `sponge`.
brew install moreutils
# Install Bash 4.
# Note: don’t forget to add `/usr/local/bin/bash` to `/etc/shells` before
# running `chsh`. To do so, run `sudo chsh -s /usr/local/bin/bash`.
# brew install bash
brew tap homebrew/versions
# brew install bash-completion2
# Switch to using brew-installed bash as default shell
# if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then
# echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
# chsh -s /usr/local/bin/bash;
# fi;
brew tap caskroom/fonts
brew update
# Install more recent versions of some macOS tools.
brew install homebrew/dupes/openssh
brew install homebrew/dupes/screen
# Apps
brew cask install google-chrome firefox \
telegram-desktop slack \
visual-studio-code sublime-text \
iterm2 docker tunnelblick postman sketch dropbox vlc spotify \
# Fonts
brew cask install font-source-code-pro font-source-code-pro-for-powerline
# Install tools
brew install vim nmap mtr tree wget git mas tmux zsh
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
source $HOME/.zshrc