ad-si / dotfiles

My precious dotfiles
MIT License
10 stars 2 forks source link
dotfiles fish shell

Dotfiles

Structure

Installation

  1. Install XCode via the macOS App Store
  2. Accept XCode license agreement
curl --silent https://github.com/ad-si/dotfiles/raw/master/install.sh | bash

Attention: The user must have sudo rights to install dependencies

Manual Steps

Copy all relevant files from backup to new Machine. (Check out [./bin/backup] for a list of all files.)

MacOS

This is written for Macs with a M1 chip. Some changes must be made for Macs with an Intel chip. E.g. Replace /opt/homebrew/bin with /usr/local/bin.

System Preferences

Scripts

Jxa macOS automation scripts are symlinked from ~/dotfiles/scripts to ~/Library/Scripts and are displayed in the scripts editor submenu in the menu bar. (Enable via Script Editor.app > Preferences > General > Show Script menu in menu bar) Add subdirectories with app names for app specific scripts.

The symlink-dotfiles script must be run after adding new scripts.

Script Libraries

Script libraries are symlinked from ~/dotfiles/script-libraries to ~/Library/Script Libraries/dotfiles and can be imported like this:

const tools = Library('dotfiles/tools')

General

Brave

  1. Go to brave://sync
  2. Join Sync Chain

Installed extensions should then include Midnight Lizard, Automatric Metric Conversion, …

Firefox

Dropbox

Sign in and enable sync for important directories.

iTerm

General > Preferences:

Gopass

  1. Clone https://github.com/ad-si/password-store with GitHub CLI: gh repo clone ad-si/password-store and move to ~/.password-store.
  2. If password on gpg key => brew install pinentry-mac.
  3. Then add to gpg-agent config (skip if .gnupg was copied from backup):
    echo "pinentry-program /opt/homebrew/bin/pinentry-mac" \
      >> ~/.gnupg/gpg-agent.conf
  4. Restart shell afterwards.
  5. gopass fsck

Sublime Text

Sublime Merge

Visual Studio Code

Sign in via GitHub to sync preferences.

Thunderbird

Copy backup to ~/Library/Thunderbird

Element

Log in to home server matrix.feram.io.

Telegram

Log in

WhatsApp

Log in

Discord

Log in

Logitech

Spotify

Slack

Logic Pro X

TODO