leebyron / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

This is a git repository hosting configuration I share between machines.

It works by a git bare repository hosted within ~/.config/dotfiles with a working directory of ~.

To install:

git clone git@github.com:leebyron/dotfiles.git --bare ~/.config/dotfiles
git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME config --local status.showUntrackedFiles no
git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME checkout 
~/.local/bin/brew-setup

The last step may fail with a message about overwriting files, if so make sure nothing would be lost and rerun with --force.

Add a file at ~/.config/git/user with a [user] git config entry.

Afterwards, run the dot command like you would git, for example:

nvim ~/.config/nvim/init.vim
dot add -u
dot commit -m "Update nvim config"
dot push

Notable:

  • Karabiner bindings, generated with a script.
  • A pretty neat script to cycle through pasteboards.
  • Synced Brew installation via some simple aliases.
    • brew add instead of brew install to auto update the ~/.Brewfile
    • brew remove instead of brew uninstall
    • brew sync to sync local state with Brewfile.

About


Languages

Language:JavaScript 55.4%Language:Shell 28.5%Language:Vim Script 16.1%