-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkickstart.sh
More file actions
executable file
·127 lines (111 loc) · 4.23 KB
/
kickstart.sh
File metadata and controls
executable file
·127 lines (111 loc) · 4.23 KB
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
#!/bin/bash
set -e
echo "😍 Kick starting your machine..."
echo
sleep 2
INITDIR=$HOME/dev/projects/$USER/macos-init
# OSX Tweaks
echo "🖱 Setting up OSX tweaks..."
echo
echo "This step will TRY to configure the following OSX settings:"
echo " * Finder: Show Path bar"
echo " * Finder: Show Hidden files"
echo
defaults write com.apple.finder ShowPathbar 1
defaults write com.apple.finder AppleShowAllFiles YES
# Generate SSH
echo "🔶 Generating new SSH key..."
echo
ssh-keygen -t rsa -b 4096
echo
echo "Adding newly-created key to ssh-agent. You will be prompted for the password."
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
# Manual instruction suggested
echo "🛑 Manual step before proceeding!"
echo
echo "To clone the init repositories the newly created SSH key needs to be uploaded to GitHub."
pbcopy < ~/.ssh/id_rsa.pub
echo "The public key (~/.ssh/id_rsa.pub) was copied to your clipboard."
echo
echo " 👾 Upload new SSH key to GH - https://github.com/settings/ssh/new"
echo
read -n 1 -s -r -p "Press any key to continue..."
echo
# Clone repos with dotfiles
echo "🐛 Creating workspace and cloning general init project..."
echo
mkdir -p ~/dev/projects/$USER
git clone git@github.com:cesarcneto/macos-init.git $INITDIR
cp $INITDIR/.ssh/config ~/.ssh/config
# Install all needed software
echo "⚙️ Installing all needed software from brew and brew cask..."
echo
brew update
brew install --cask firefox google-chrome intellij-idea-ce docker
brew install --cask visual-studio-code insomnia obsidian
brew install --cask bitwarden rectangle fzf spotify clipy
brew install python3 pipenv go node nvm minikube kubernetes-cli jq awscli derailed/k9s/k9s tree
brew install clojure/tools/clojure bitwarden-cli vlc gpg
# Install RVM
echo "Installing Ruby Version Manager - RVM ..."
echo "gem: --no-document" >> ~/.gemrc
curl -sSL https://get.rvm.io | bash -s stable
type rvm | head -1
# Install SDK Man
echo "Installing The Software Development Kit Manager - SDKMan ..."
curl -s "https://get.sdkman.io" | bash
# TODO copy .gitignore and set it up
# git config --global core.excludesfile ~/.gitignore
# Clone Powerlevel10k ZSH theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Setup dotfiles
echo "🎫 Copying dotfiles..."
echo
echo "This step will:"
echo " * Copy .zshrc to home"
echo
cp $INITDIR/.zshrc ~/
source ~/.zshrc
# Install VS Code extensions
echo "Installing VS Code extensions..."
code --install-extension vscjava.vscode-java-pack
code --install-extension ms-python.python
code --install-extension visualstudioexptteam.vscodeintellicode
code --install-extension redhat.vscode-yaml
code --install-extension arjun.swagger-viewer
code --install-extension vscjava.vscode-spring-initializr
code --install-extension pivotal.vscode-spring-boot
code --install-extension gabrielbb.vscode-lombok
code --install-extension 42crunch.vscode-openapi
code --install-extension aaron-bond.better-comments
code --install-extension betterthantomorrow.calva
code --install-extension borkdude.clj-kondo
echo
# Brew doctor to get an idea of the current state of the things
echo "Brew doctor to get an idea of the current state of the things"
brew doctor
echo "🎉 All done!"
echo
echo "OSX tweaks to do manually:"
echo " ⚙️ Displays > Resolution > More Space"
echo " ⚙️ Keyboard > Input Sources > add U.S. International - PC > remove others"
echo " ⚙️ Accessibility > Zoom > Use scroll gesture with modifier keys to zoom > ^ Control"
echo " ⚙️ Security & Privacy > General > Require password immediately after sleep or screen saver begins"
echo " ⚙️ Keyboard > Text > disable Correct spelling automatically and Capitalize words automatically"
echo
echo "Application configuration to do manually:"
echo " 📅 Calendar:"
echo " ⚙️ Add Google accounts, configure refreshing for every 5min"
echo
echo " 👓 Rectangle:"
echo " ⚙️ System Preferences > Security & Privacy > Accessibility > Rectangle"
echo
echo " 📋 Clipy-App: Open-source clipboard manager"
echo " ⚙️ System Preferences > Security & Privacy > Accessibility > Clipy"
echo
echo " 🌕 Firefox:"
echo " ⚙️ Set as default browser"
echo " ⚙️ Login to Firefox to synchronize extensions"
echo
echo "🌈 HAVE FUN! 🦄"