- Update macOS
- Generate an SSH key
ssh-keygen
- Copy the value of the SSH key
cat ~/.ssh/id_ed25519.pub | pbcopy
- if this changes, update
.ssh/config
- if this changes, update
- Add the key to GitHub
- Install Homebrew
- Add brew to the PATH
- Setup the bare git repo
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> ~/.zprofile
config config --local status.showUntrackedFiles no
config remote add origin [email protected]:Fullchee/mac-dotfiles.git
config fetch origin main -y
config reset --hard origin/main
config branch --set-upstream-to=origin/main main
zsh ~/.dotfiles/post-install.sh
- Copy the contents of
.backup-crontab.sh
sudo crontab -e
save-crontab
- Bluetooth devices
- portable speaker
- headphones
- earbuds
- Printer
- Settings ->
- Accessibility
- Zoom -> Use scroll gesture with modifier keys to zoom
- Spoken Content
- System Voice
- Update the voice to Siri 1
- Increment speed by 1
- Speak Selection: enable
- System Voice
- Control Center
- Sound: Always Show in Menu Bar
- Show battery percentage
- Show Weather
- Keyboard ->
- Keyboard Navigation: Enable
- Keyboard shortcuts
- Mission Control: disable everything
- Spotlight -> Show Spotlight Search: disable
- Trackpad
- Tap to click
- -> Scroll & Save: Natural scrolling: disable
- Login Items & Extensions
- Actions: enable ImagOptim
- Location
- just allow weather and some System Settings to use location
- Accessibility
- Screenshot: cmd shift 5 -> Options
- iTerm2
- VSCode
- Install the App and place it in the
Applications
folder - Hold
Option+CMD
and drag the application to toolbar
cmd k
Remote Connect to a serverCmd shift a
cmd [
jump around and Refresh Findercmd-shift-n
: create a new foldercmd-L
Create a new aliascmd-shift-g
: Goto file (autocompleted)cmd-shift-.
toggle hidden filesalt cmd space
to open up finder
Type kind:doc
to only select .doc types
Create a "Copy Path" service for Finder (Credit to OSX Daily: http://osxdaily.com/2013/06/19/copy-file-folder-path-mac-os-x/)
- Launch Automator and create a new “Service”
- Use the search function to look for “Copy to Clipboard” and drag that into the rightside panel of the Service
- Set ‘Service recieves selected’ to “files or folders” and ‘in’ to “Finder” as shown in the screen shot below
- Save the Service with a name like “Copy Path”
- alt -> and <- to move a word at a time (Linux uses the super/meta key)
- Preferences (cmd ,) -> Profiles -> Keys -> Left Option as Escape
- Change the Alt -> and Alt <- to "Send Escape Sequence" (esc+b and esc+f)
- shortcut to toggle iTerm: Preferences -> Keys tab -> Hotkey section
- cmd-g: find next search result (instead of pressing enter), can also do cmd-shift-g to search forward in time
- http://teohm.com/blog/working-effectively-with-iterm2/
- cmd /: show where the cursor is
- add and remove whatever is not being found in Spotlight's list of directories it won't scan
- cmd-enter
- Select some text with your desired font & spacing
- Cmd-d (opens Font) window
- Click the Advanced tab near the top
- Click
Default ...
on the bottom left
- Open Preferences (cmd ,)
- Click the
General
button - Untick
Show Word Document Gallery
Preferences -> Internet Accounts -> Untick and tick calendar
- Turn off laptop
- Keep Power cable plugged in
- Hold Shift+Control+Option+Power
- cmd-option-escape, then force quit the program you'd like
- otherwise, to kill the process,
ps aux | grep <process name>
and then kill it, like Linux
Only copy/paste the formatting (useful in Notes, Google Drive, not Word, especially for strikethrough)
cmd-alt-c and cmd-alt-v
- Right click a file with that extension to "Get Info"
- Near the bottom, in "Open with", change the app and press "Change All..."
- Create an
.icns
file (convert online or something) - Click on your
Application.app
and pressCmd I
- Drag your
.icns
file to the top left corner where the old icon until you see a green plus sign
- double click on the two bars at the bottom of the column
- like Excel, no need to manually drag it out