Skip to content
olimorrisPublic

About

💻 My personal dotfiles built around a Ruby Rakefile. Hammerspoon, Fish...

Topics

Resources

Stars

229 stars

Watchers

1 watching

Forks

Repository files navigation

Dotfiles

Oli's Dotfiles

My macOS dotfiles. Installation instructions are my own
Regular Neovim tweaks. Occasional workflow tips worth stealing 😄
My current Neovim config can be found here

💻 Setting up a new Mac

  • Ensure you're signed into iCloud and the App Store
  • Clone the dotfiles:
git clone https://github.com/olimorris/dotfiles.git ~/.dotfiles
  • Copy rclone.conf from 1Password to ~/.dotfiles/.config/rclone/rclone.conf
  • Copy .env from 1Password to ~/.dotfiles/.config/env/.env and update as required
  • Open up a terminal and run:
cd ~/.dotfiles && rake init
  • Grab a coffee. This will take a while

🔧 What actually happens

  • Your Homebrew and macOS apps will be installed
  • Your application settings will be restored via tasks/mackup.rb
  • Your dotfiles will be restored with Dotbot
  • Your fonts will be installed
  • Your custom launch agents will be installed
  • Your development environments will be installed and configured

💾 Useful commands

  • To move files between Macs (run backup --help for the groups and options):
backup push --dotfiles --code    # Mac -> cloud, newer file wins, nothing deleted
backup pull --dotfiles --code    # cloud -> Mac, newer file wins, nothing deleted
backup sync --dotfiles --code    # push, then pull
backup reset --code              # make this Mac match the cloud, deleting local extras
  • To save this Mac's package lists into ~/.dotfiles without pushing:
rake backup:packages
  • To apply the files in ~/.dotfiles to this Mac:
rake setup             # links, app configs and packages
rake setup:links       # dotbot and agent skills
rake setup:apps        # app configs
rake setup:packages    # brew, casks, App Store, gems, npm, pip. Never uninstalls
rake setup:macos       # macOS defaults, not part of rake setup
  • To update everything and refresh the package lists:
cd ~/.dotfiles && rake update

⌨️ Useful keymaps

I implement a Hyperkey (ctrloptcmd) to allow for faster application toggling and easier to remember app shortcuts.

Click to see the app shortcuts
  • Create a temp email address Hyperkeyshifte
  • Hide my email Hyperkeyshifth
  • Lock screen Hyperkeyshiftl
  • Pick color with ColorSlurp Hyperkeyshiftp
  • Search files Hyperkeyshiftf
  • Search Raindrop bookmarks Hyperkeyshiftb
  • Search screen (uses OCR) Hyperkeyshiftr
  • Show Cleanshot history Hyperkeyshiftc
  • Show clipboard history Hyperkeyshiftv
  • Toggle dark mode Hyperkeyshiftd
  • Windows - Center optc
  • Windows - Maximise optm
  • Windows - Left half Hyperkey←
  • Windows - Right half Hyperkey→
  • Windows - First third Hyperkey↑
  • Windows - Last two thirds Hyperkey↓

Thanks to this great Reddit post

👏 Thanks

About

💻 My personal dotfiles built around a Ruby Rakefile. Hammerspoon, Fish...

Topics

Resources

Stars

229 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages