Running this command will extract all of the code blocks from this README to README.sh and run it.
perl extract-scripts.pl > README.sh && sh README.sh- Everything terminal related (zsh)
- Switch node version when .nvmrc file is found
- TLDR Man Pages
- .zprofile
- Remove (replace?) VS Code settings sync, is built-in functionality now
sudo chown -R $(whoami) /usr/local/etc/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install all apps in Brewfile
sudo chown -R $(whoami) /usr/local/bin /usr/local/etc /usr/local/sbin
brew bundlecurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
touch ~/.bash_profile
echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profilesh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"# All other settings and extensions will be installed after configuring settings sync
code --install-extension shan.code-settings-sync
# Fira Code Font
curl -sL https://github.com/tonsky/FiraCode/releases/download/1.206/FiraCode_1.206.zip > FiraCode.zip
unzip FiraCode.zip -d FiraCode
mv FiraCode/ttf/* ~/Library/Fonts/
rm -rf FiraCode/ FiraCode.zipfor APP in Station VLC WhatsApp Messenger Slack Google\ Chrome Backup\ and\ sync\ from\ Google Fluid Backup\ and\ Sync Clipy iTerm Postman Docker IntelliJ\ IDEA Visual\ Studio\ Code Spectacle Spotify The\ Unarchiver Google\ Chrome
do
open -a $APP
donegit config --global user.name "Username"
git config --global user.email "Username@gmail.com"
# Generate a new private / public key pair to add to GitHub, GitLab, ...
ssh-keygen -o -t rsa -b 4096# Increase history size
echo HISTFILESIZE=10000000 >> ~/.bash_profile# Use zshell by default
chsh -s /bin/zshFind preference domains / names like this
# UI theme → dark mode
defaults write -globalDomain AppleInterfaceStyle "Dark"
# Disable spelling correction
defaults write -globalDomain NSAutomaticSpellingCorrectionEnabled 0m dock autohide YES
m dock magnification YES
m dock prune# Disable automatic capitalization
defaults write -globalDomain NSAutomaticCapitalizationEnabled 0# Click by tapping
defaults write com.apple.AppleMultitouchTrackpad Clicking 1
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking 1
# Enable expose gesture
defaults write com.apple.dock showAppExposeGestureEnabled 1m finder showhiddenfiles YES
# Don't show the tags
defaults write com.apple.finder ShowRecentTags 0
# Preferred view style → three columns
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# Location for new window → home folder
defaults write com.apple.finder NewWindowTarget PfHm
defaults write com.apple.finder NewWindowTargetPath "file:///Users/${whoami}/"# Add extra items to system menu
defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/Library/CoreServices/Menu Extras/Clock.menu" "/System/Library/CoreServices/Menu Extras/Displays.menu" "/System/Library/CoreServices/Menu Extras/Volume.menu"killall SystemUIServer