项目作者: Geekfish

项目描述 :
Just my dotfiles and laptop "setup" resources
高级语言: Shell
项目地址: git://github.com/Geekfish/dotfiles.git
创建时间: 2020-08-13T18:57:26Z
项目社区:https://github.com/Geekfish/dotfiles

开源协议:MIT License

下载


Dotfiles & New Laptop Setup

Table of Contents

About

This is just my personal guide for keeping track of my configurations and facilitate setting up a new machine.

The TOC in this document is built with the Auto Markdown TOC VS Code extension.

General

Before installing the dotfiles it may be a good idea to install some of the things below.

Essentials

Might be needed later

Usually don’t need to be install straight away.

Concentration

Development

Must-have

Nix - Experimental

To install:

  1. <(curl -L https://nixos.org/nix/install)
  2. nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
  3. ./result/bin/darwin-installer

Dotfiles

Assuming you checkout this repo in your $HOME directory, you can run the following to symlink all the dotfiles:

  1. cd dotfiles
  2. ./install_config.sh

⚠️ The above will prompt you about replacing existing dotfiles in case there’s something you’d rather keep. The .git directory (and any other directory) is ignored.

Brew packages

Brew packages, casks and vscode plugins live in Brewfile.

You can install them with

  1. brew bundle --global

Completions

You can install optional completions by running:

  1. ./install_completions.sh

GPG

  1. To store GPG passphrases in the keychain, you need to run:
  1. mkdir -p -m 0700 ~/.gnupg
  2. echo "pinentry-program $(which pinentry-mac)" | tee ~/.gnupg/gpg-agent.conf
  3. pkill -TERM gpg-agent

and restart the terminal session.

Next time you’re asked for the passphrase, it will be stored in the keychain.

  1. Make sure you import a valid GPG key, see also GPG, Github and Keybase guide.

  2. Ensure the key and author details are actually used, by setting up .gitconfig_personal (not shared here)

  1. [user]
  2. name = "..."
  3. email = "..."
  4. signingkey = "..."

Fonts

Fira Code is a good monospace font for coding that supports ligatures). It can be installed using brew (see above).
Further config might be required depending on the editor, see here for VSCode.


1 Requires license/subscription (but might also have a free plan)