/.dotfiles

Primary LanguageLua

.dotfiles

My personal dotfiles - use at your own risk.

setup

init new repo:

git init --bare $HOME/.dotfiles
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config config status.showUntrackedFiles no

init new machine:

git clone --bare <git-repo-url> $HOME/.dotfiles
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
config checkout

source

setup on windows

  1. Create powershell file at $PROFILE with
function config { git --git-dir=$HOME\.dotfiles\ --work-tree=$HOME $args }
  1. config checkout
  2. config config status.showUntrackedFiles no
  3. Set environment variable XDG_CONFIG_HOME to C:\Users\{USER}\.config (source).