-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.sh
executable file
·50 lines (36 loc) · 2.14 KB
/
apps.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
#!/usr/bin/env zsh
# Store the current non-sudo user
currentUser=$(id -un)
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until this scriptApp has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# Anti spy config #
###############################################################################
# Block apple OCSP service (verifies cert on every app launch with apple servers)
sudo sh -c 'echo "127.0.0.1 ocsp.apple.com" >> /etc/hosts'
sudo sh -c 'echo "127.0.0.1 ocsp2.apple.com" >> /etc/hosts'
###############################################################################
# Configure zsh and terminal #
###############################################################################
# Copy zsh config
cp ./zsh/zshrc ~/.zshrc
chmod 644 ~/.zshrc
# Copy zsh plugins
mkdir ~/.zsh
cp -R ./zsh/zsh-plugins/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
cp -R ./zsh/zsh-plugins/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting
chmod -R 744 ~/.zsh
# Terminal
cp ./terminal/com.apple.Terminal.plist ~/Library/Preferences/com.apple.Terminal.plist
chmod 600 ~/Library/Preferences/com.apple.Terminal.plist
###############################################################################
# Install packages #
###############################################################################
sudo mkdir -p /usr/local/bin/
sudo chmod -R ${currentUser}:admin /usr/local/bin
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install tmux inetutils moreutils findutils wget curl httpie htop bmon nmap iperf rclone rsync p7zip hexedit git [email protected] go rust node ffmpeg [email protected] libusb mediainfo exiftool cmake qt ninja yt-dlp neofetch ncdu mpv openssl f3 watch libimobiledevice openjdk mitmproxy fsevent_watch monolith chromium shairport-sync docker docker-compose
brew cleanup