Skip to content

ynnadrules/macOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Mac

How I setup a new Mac.

1. Install brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2. Install deps

git clone https://github.com/ynnadrules/macos.git
cd macos
brew bundle

3. Install dotfiles

git clone https://github.com/ynnadrules/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap
zsh

Not so-sensible defaults:

./macos/set-defaults

4. Setup SSH keys

Create a new SSH key or copy the previous one into ~/.ssh. That should be it.

Also fix perms:

$ chmod 0600 ~/.ssh/id_rsa

5. Setup GPG signing

Create default config files:

gpg --list-keys

Setup pinentry:

$ brew install pinentry-mac
$ echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
$ killall gpg-agent

Import the key:

$ export GPG_TTY=$(tty)
$ keybase pgp export -q C14AB940 | gpg --import
$ keybase pgp export -q C14AB940 --secret | gpg --import --allow-secret-key-import

Change C14AB940 with your key id.

Setup git:

$ git config --global gpg.program $(which gpg)
$ git config --global user.signingkey C14AB940
$ git config --global commit.gpgsign true

Change C14AB940 with your key id.

Test it:

$ mkdir -p /tmp/test
$ cd $_
$ git init
$ git commit --allow-empty -m 'signsss'
$ git log --show-signature

That's it!

6. Reboot

sudo reboot

7. Profit!

🍻

About

How I setup a new Mac

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.5%
  • Shell 0.5%