-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.macos
56 lines (42 loc) · 2.26 KB
/
.macos
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
#! usr/bin/env bash
# Befehl in neuen Macbook reinhämmern
# curl https://raw.githubusercontent.com/aaronschweig/macos-setup/master/.macos | bash
# Systemeinstellungen schließen --> Sonst überschreibt er
osascript -e 'tell application "System Preferences" to quit'
# Admin-Rechte
sudo -v
# Während des langen Installationsprozesses ist es wichtig, sudo zu behalten
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
echo "Hello $(whoami)! Let's get started!"
echo "mkdir -p ${HOME}/Documents/Development"
mkdir -p ${HOME}/Documents/Development
echo "Install homewbrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Install programms with brew"
# htop - Process Monitoring
# pnpm - storage-sensitive package manager
# gh - Official CLI for Github to quickly create Repositories and all that stuff
# jq - For json formatting
brew install htop pnpm gh jq go
echo "Install all the Desktop apps which are possible with brew"
# Todo Spark, Docker?
# Todo Settings for iTerm2 and Font for P10k
brew install --cask brave-browser visual-studio-code iterm2 spotify telegram
echo "Install oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Install P10k Theme"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
echo "Cloning the other configurations"
git clone https://github.com/aaronschweig/macos-setup.git "${HOME}/dotfiles"
ln -s "${HOME}/dotfiles/.zshrc" "${HOME}/.zshrc"
ln -s "${HOME}/dotfiles/.p10k.zsh" "${HOME}/.p10k.zsh"
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool false
defaults write com.apple.dock show-recents -bool false
# Define Default settings and impleent them here
echo "Setup is finished! Currently you need to install: \n * Spark\n * Docker"
echo "You also need to check the settings (currently manual, should be automated) for MacOS"
echo "Setttings for iTerm2:"
echo " * Download and install MesloLGS NF [https://github.com/romkatv/powerlevel10k#manual-font-installation] > set Font for iTerm2"
echo " * Set dedicated Hotkey inside of Settings > Keys > Hotkey"
echo " * Set columns to 160 and rows to 50"