Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

ascander/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

344 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ascander's Dotfiles without Nix

If you're looking for the Nix-based system configuration, you want ascander/dots

Overview

This is a Nix-free version of my personal development environment for macOS machines. This includes:

  • Homebrew for applications, packages, fonts, etc.
  • Configuration for the tools I use (symlinked by rcm) including:
    • Alacritty
    • Tmux
    • Karabiner Elements
    • ZSH

Getting started

Do the following to set up a new macOS machine:

  1. Generate SSH keys

  2. Run the bootstrap script

    ./bin/bootstrap.sh
  3. Install packages from the Brewfile

    brew bundle --file ./Brewfile
  4. Install rcm configuration file

    rcup -d . rcrc
  5. Install dotfiles

    rcup
  6. Set up macOS defaults

    ./bin/defaults.sh

Neovim

I'm trying out LazyVim as an editor instead of a Nix-based configuration. You can find it at ascander/nvim

Alacritty Themes

I've included a number of Alacritty themes in config/alacritty/themes as well as a theme switcher script in bin/switchtheme.sh. You can switch to eg. nightfox as follows:

./bin/switchtheme.sh nightfox

GPG

Setting up GPG for signed commits to Github requires Homebrew dependencies to be installed, viz. gnupg and pinentry-mac. I currently set this up manually, following this gist.

Local

My convention for local configuration (ie., packages and/or configuration you need on a work computer) is to use file(s) ending in .local including:

  • Brewfile.local for Homebrew packages
  • zshrc.local for ZSH settings/env/etc.

Notes

Karabiner

If you want to define a mapping in Karabiner to do different things based on whether the key is pressed alone or with another key, use this structure:

{
  "from": {
    "key_code": "caps_lock",
    "modifiers": {
      "optional": [
        "any"
      ]
    }
  },
  "to": [
    {
      "key_code": "left_control"
    }
  ],
  "to_if_alone": [
    {
      "key_code": "escape"
    }
  ],
  "type": "basic"
}

Using to_when_held_down instead of to results in having to tweak delay thresholds to tune when eg. Esc is sent vs. Ctrl, and I haven't been able to get it just right for how I type.

About

Dotfiles for non-Nix environments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors