Skip to content

julie-ng/dotfiles

 
 

Repository files navigation

Julie's dotfiles

Originally cloned, stripped and modified from Paul Irish's dotfiles with some further customizations.

Install

  1. Clone this repository
  2. Run ./sync.sh and confirm deletion of existing files when prompted.

Custom Shell

Preview

Look and Feel

Additional Toools

Mac Adjustments

Git - Disable OS X Keychain

Mac OS by default wants to use the OS X keychain. But I want to use git-credential-netrc.

Verify problem with

$ git config --system credential.helper
osxkeychain

Then try

git config --system --unset credential.helper

Then hopefully it uses our .gitconfig

Managing GPG Keys

Copy keys to another computer, per gpg docs on exchanging keys.

Important

When exporting/importing the private key, you'll be prompted to enter the key's password.

Export Keys

First, export the public and private keys.

Tip

Use --armor flag if readable ascii output is preferred.

gpg --export <user@email> --output <public.gpg>
gpg --export-secret-keys <user@email> --output <private.gpg>

Then export the trust database

gpg --export-ownertrust > ownertrust-file.txt

Import Keys

gpg --import <public.gpg>
gpg --import <private.gpg>

Note

The private key is not the full key, but rather is tied to the YubiKey. Run gpg --list-secret-keys and the # in ssb# indicates that the secret subkey is not available. There should be a Card serial no. listed in sec.

And then import the trust database

gpg --import-ownertrust ownertrust-file.txt

Trust Key (if needed)

If later using the key there is an erorr message that says

"There is no assurance this key belongs to the named user gpg:",

then run

gpg --list-keys
gpg --edit-key <KEY_ID>
gpg> trust

and select a value, e.g. 5 for ultimate trust.

Configuring .netrc

Example use case: need to update GitHub API token.

First, decrypt the .netrc.gpg into .netrc

gpg --decrypt --recipient <user@email> -o .netrc .netrc.gpg

Make changes to .netrc

Then re-encrypt to a .netrc.gpg

gpg --encrypt --recipient <user@email> -o .netrc.gpg .netrc

Caution

Don't forget to delete the unencrypted .netrc file.

About

.files, including ~/.osx — sensible hacker defaults for OS X

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 93.9%
  • Vim Script 6.1%