Skip to content

sheagcraig/dotfiles

Repository files navigation

@@@@@@@    @@@@@@   @@@@@@@  @@@@@@@@  @@@  @@@       @@@@@@@@   @@@@@@   
@@@@@@@@  @@@@@@@@  @@@@@@@  @@@@@@@@  @@@  @@@       @@@@@@@@  @@@@@@@   
@@!  @@@  @@!  @@@    @@!    @@!       @@!  @@!       @@!       !@@       
!@!  @!@  !@!  @!@    !@!    !@!       !@!  !@!       !@!       !@!       
@!@  !@!  @!@  !@!    @!!    @!!!:!    !!@  @!!       @!!!:!    !!@@!!    
!@!  !!!  !@!  !!!    !!!    !!!!!:    !!!  !!!       !!!!!:     !!@!!!   
!!:  !!!  !!:  !!!    !!:    !!:       !!:  !!:       !!:            !:!  
:!:  !:!  :!:  !:!    :!:    :!:       :!:   :!:      :!:           !:!   
 :::: ::  ::::: ::     ::     ::        ::   :: ::::   :: ::::  :::: ::   
:: :  :    : :  :      :      :        :    : :: : :  : :: ::   :: : :    

Welcome

These are my configs. They can make your life a lot better.

To set up, you need to get Salt. Go download and install it... You'll also need the Xcode developer tools.

  1. sudo xcode-select --install
  2. sudo xcodebuild -license

I usually build my machine with the configuration management system I maintain, so these dependencies are already installed.

To actually configure the Mac:

  1. cd <this project's folder>
  2. Run ./power_extreme.sh bootstrap to set install homebrew and configure salt.
  3. Run ./power_extreme.sh decrypt <path to secrets> to decrypt anything in the provided path to the dotfiles secrets folder (mode 700) for later management by the salt states.
  4. Run ./power_extreme.sh brew to install all homebrew pkgs. This is really slow, so it's separated out to avoid running it multiple times.
  5. Run ./power_extreme.sh go to run the highstate.

If individual states fail, ./power_extreme.sh -s states/<state_name> will re-run them with the local Salt config.

Alas, one truism of dotfiles is that you spend at least as much time screwing around with them every time you build a new machine as you would spend just doing things by hand. The TODO file includes all of the known broken stuff and planned future management.

Using your own stuff

This installs my dotfiles, brew packages, etc. If you would like to install your own, you'll need to override the configuration variables and/or pillars.

Some files are pulled from my Google Drive folder since they can't be included on a public GitHub repo. Feel free to do the same for your own secrets. Just make sure you encrypt anything that you put up there!

References

The kind of tricky iTerm2 config is based on http://stratus3d.com/blog/2015/02/28/sync-iterm2-profile-with-dotfiles-repository/ Any changes to the iTerm profile must be saved back out to this file and committed (although that's true of all the dotfiles).

Stuff you have to setup manually

Some stuff I haven't figured out how to automate yet. So here's the checklist so I don't forget next time.

  • Install Salt...
  • Safari
    • Safari/Preferences/Advanced/Develop menu
    • Safari/Prefernces/Tabs/Turn on favicons in Safari
    • Add iCloud button to Safari toolbar.
  • Messages/Preferences/iMessage/Enable messages in iCloud
    • Maybe... Sometimes it's nice to just not get bothered.
  • System Preferences/General/Appearance/Dark mode
  • Add Finder sidebar shortcuts.
  • System Preferences/Date & Time/Clock/Date options: Show date
  • Menubar/Power/Show percentage
  • System Preferences/Sound/Show volume in menu bar
  • Add Play Pause button to touchbar (removing Siri)
  • gpg key for git commits
    • https://gist.github.com/angela-d/8b27670bac26e4bf7c431715fef5cc51
    • Get keys out
      • gpg --list-secret-keys --keyid-format LONG to get ID of current key (see .gitconfig too)
      • gpg --export -a {ID} > gpg-pub.asc
      • gpg --export-secret-keys -a {ID} > gpg-sc.asc
      • Or it's in my secrets encrypted:
        • Encrypt
        • gpg -c <filename>
        • Decrypt
        • gpg -d <filename>
    • Import
      • gpg --import gpg-pub.asc
      • gpg --import gpg-sc.asc
      • killall gpg-agent (to get it to use pinentry-mac instead of pinentry, which lets you save the password in the keychain)
  • Add Obsidian vault
    • Enable iCloud for files; vault is there.
  • Add web clipping for Obisidian
    • Add markdownloader Chrome extension and import dotfiles/files/(markdownloadconfig).json
  • Add Pocket extension to browsers

About

My dotfiles. With fortune | cowsay !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published