After a freak accident where a framed photo fell off the wall (rendering the top half of my laptop unusable) I faced the unfortunate scenario of setting up a brand new machine. Although I'm grateful that I was able to replace my old laptop, the setup process was a bit daunting. This machine-config repository, along with my dotfiles repository, is my attempt at making future machine upgrades smoother.
- Download this project as a zip from Github. This will make running the shell scripts easier.
- system-settings.sh
- (Optional) system-etc-config.sh
- Use this to keep all zsh related files in one folder
- Note: you might have to manually copy zsh files and folders over to the ./zsh directory
- Install Oh My Zsh
- Run
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"in Terminal
- Run
- Compare the .zshrc on the new machine to zshrc and make any applicable changes
- Install Homebrew
- Enter
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"in Terminal - Get up and running by entering
brew bundle installin the same directory as the Brewfile
- Enter
- Add the capability to launch VS Code from the command line
- Install nvm and node
- Install nvm
- Install the latest version of node with
nvm install node(this also installs npm globally)
- Install yarn globally
- Configure Github SSH Key
- Create a new SSH key on your machine
- Restart the machine for the ssh key and keychain changes to take effect
- Add the SSH key to your Github account
- Configure Git
- Make sure to change
REPLACEME@gmail.comto your Github account email
- Make sure to change
- finder-toolbar-applications
- Note: I found myself wanting to easily launch Terminal and VS Code instances that were already at a specific directory. The scripts can be exported to update the corresponding application.
- Each application was installed to your
C:/Applicationsdirectory when you completed step 6 - Hold down cmd while dragging each application from the
C:/Applicationsdirectory into the finder toolbar
- Remap some keys on the built-in keyboard
- Copy the com.local.KeyRemapping.plist file to
~/Library/LaunchAgents/com.local.KeyRemapping.plist - Reboot the machine for it to take effect
- Credit where it's due:
- https://mybyways.com/blog/remapping-physical-function-keys-on-macbook-pros
- https://mybyways.com/blog/script-to-re-map-macbook-pro-function-keys
- https://www.nanoant.com/mac/macos-function-key-remapping-with-hidutil
- https://www.reddit.com/r/olkb/comments/puac0o/macspecific_hex_codes_for_spotlight_dictation_and/
- Copy the com.local.KeyRemapping.plist file to
- Give f13, f14, and any others cool new jobs !! You could...
- set a shortcut for Stage Manager in the Settings app
- create a shortcut to create a Finder window and/or bring a Finder window to focus
- go into "read text" accessibility settings and enter a shortcut to trigger it
- open 1password and enter a shortcut to trigger global autofill
- and more!
Having issues getting your file (named myscript.sh as an example) to execute?
- Navigate to
myscript.sh's parent directory - Run
chmod 755 myscript.shto change its permissions - Run it with
./YourScriptName.sh