8000 GitHub - stigi/.dots: My dotfiles. Hand selected and proven worthy. · GitHub
[go: up one dir, main page]

Skip to content
stigiPublic

About

My dotfiles. Hand selected and proven worthy.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

95 Commits

Folders and files

Repository files navigation

.dots

My dotfiles for macOS and zsh. chezmoi manages them.

Installation

On a new Mac:< 7CE9 /p>

sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply stigi/.dots

chezmoi asks for the git author name and email, and if the Mac is a Pitch work machine. Then it does these steps:

  1. It installs Homebrew and the packages that the dotfiles use.
  2. It writes the files into the home directory.
  3. It installs the vim plugins.

SSH keys

Secretive keeps the SSH keys in the Secure Enclave. chezmoi installs it. ~/.zshenv sets SSH_AUTH_SOCK to the Secretive agent, thus ssh and git signatures use it.

A key cannot leave the Mac on which you made it. On a new Mac, do these steps:

  1. Open Secretive and let it install its agent.

  2. Make the keys. The configs use these key names:

    Key name Use
    github Login to GitHub.
    github-signing Signs commits and tags. Give ~/.ssh/secretive/github-signing.pub as the signing key when chezmoi asks.
    git.ullrich.is Login to the Forgejo server.
    git.ullrich.is-signing Signs commits and tags in repositories with a git.ullrich.is remote.

    A Pitch work machine also needs a key with the name pitch-signing, and a key with the comment <work email> - Github for the GitHub account for work.

  3. Run script/link-secretive-keys.sh. It links each public key to ~/.ssh/secretive/<key name>.pub. If a key has a custom comment in Secretive, the link gets the comment as its name.

  4. Add the public keys to the hosts, to GitHub and to Forgejo. Add each signing key as a signing key.

  5. Run chezmoi apply. It writes ~/.gitconfig-git.ullrich.is only if the link for git.ullrich.is-signing exists.

~/.ssh/config is not in this repository. For a host that uses a Secretive key, it has these lines:

IdentityAgent "~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"
IdentityFile ~/.ssh/secretive/<key name>.pub
IdentitiesOnly yes

Layout

Path Content
home/ The chezmoi source state. .chezmoiroot points to this folder.
home/dot_config/exact_zsh/ The zsh components. ~/.zshrc loads them from ~/.config/zsh.
home/.chezmoiignore The files that only a Pitch work machine gets.
script/install-android.sh Optional Android setup. Run it manually.
script/link-secretive-keys.sh Links the Secretive public keys into ~/.ssh/secretive. Run it manually.

The zsh components load in three steps:

  1. <topic>.env.zsh: exports and PATH changes. homebrew.env.zsh loads first.
  2. All other *.zsh files.
  3. <topic>.completion.zsh: these load after compinit.

Daily use

chezmoi edit ~/.zshrc   # edit the source file
chezmoi diff            # show what an apply changes
chezmoi apply           # write the changes into the home directory
chezmoi cd              # open a shell in the source repository

Inspiration & Credits

The first version was based on holman/dotfiles and robb/.dotfiles. Thanks!

About

My dotfiles. Hand selected and proven worthy.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0