-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_mac.sh
130 lines (118 loc) · 5.33 KB
/
deploy_mac.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
# Install xCode cli tools
echo "Installing commandline tools..."
xcode-select --install && echo "Installing Brew..."
# Install Brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" && brew analytics off
# Brew Taps
echo "Installing Brew Formulae..."
brew tap homebrew/cask-fonts
brew tap FelixKratz/formulae
# downloader
brew install aria2
brew install wget
#tools for clang
brew install gsl #The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers.
brew install llvm # copmplier for mac
brew install gcc # gcc just gcc
brew install ccls # ccls, which originates from cquery, is a C/C++/Objective-C language server.
brew install boost # Boost provides free peer-reviewed portable C++ source libraries.
brew install libomp # LLVM's OpenMP runtime library
brew install armadillo # Armadillo is a high quality linear algebra library (matrix maths) for the C++ language
# editor
brew install neovim
brew install tree
# python
brew install [email protected]
brew install pyenv # python vesion manager
brew install pyenv-virtualenv
# useful tools
brew install jq # json parse
brew install gh # GitHub command-line tool
brew install ripgrep # a pro grep
brew install proxychains-ng # proxy commandline
brew install stow # congig dotfiles
brew install tmux # session manager
# brew install yadm # windows manager like i3wm
brew install iterm2 # termial
brew install neofetch # system environment show
brew install wireguard-go #This is an implementation of WireGuard in Go.
brew install dooit # TUI todo manager
# zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
brew install zsh-autosuggestions
brew install zsh-syntax-highlighting
brew install zsh-vi-mode # use vim in zsh
brew install svim # operate safari like vim
brew install sf-symbols # SF Symbols is the system icon framework
brew install switchaudio-osx
brew install lazygit
brew install btop
brew install firefox
brew install ipfs
brew install zsh-autosuggestions
brew install zsh-syntax-highlighting
brew install chezmoi
# Brew Casks
echo "Installing Brew Casks..."
brew install --cask monitorcontrol
brew install --cask sloth
brew install --cask zoom
brew install --cask hex-fiend
brew install --cask cutter
brew install --cask font-hack-nerd-font
brew install --cask iina
brew install --cask finalshell
brew install --cask font-hack-nerd-font
brew install --cask google-chrome
brew install --cask mactex
brew install --cask sf-symbols
brew install --cask visual-studio-code
brew install --cask steam
brew install --cask wechat
brew install --cask zerotier-one
# Mac App Store Apps
echo "Installing Mac App Store Apps..."
mas install 1451685025 #Wireguard
mas install 497799835 #xCode
# macOS Settings
echo "Changing macOS defaults..."
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.spaces spans-displays -bool false
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock "mru-spaces" -bool "false"
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write com.apple.LaunchServices LSQuarantine -bool false
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write NSGlobalDomain _HIHideMenuBar -bool true
defaults write NSGlobalDomain AppleHighlightColor -string "0.65098 0.85490 0.58431"
defaults write NSGlobalDomain AppleAccentColor -int 1
defaults write com.apple.screencapture location -string "$HOME/Desktop"
defaults write com.apple.screencapture disable-shadow -bool true
defaults write com.apple.screencapture type -string "png"
defaults write com.apple.finder DisableAllAnimations -bool true
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool false
defaults write com.apple.finder ShowMountedServersOnDesktop -bool false
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool false
defaults write com.apple.Finder AppleShowAllFiles -bool true
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
defaults write com.apple.finder ShowStatusBar -bool false
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool YES
defaults write com.apple.Safari AutoOpenSafeDownloads -bool false
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
# Installing Fonts
git clone [email protected]:shaunsingh/SFMono-Nerd-Font-Ligaturized.git /tmp/SFMono_Nerd_Font
mv /tmp/SFMono_Nerd_Font/* $HOME/Library/Fonts
rm -rf /tmp/SFMono_Nerd_Font/