anden-dev / dotfilesv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfilesv2

After considering stow or nix, this is a pure git driven solution to tame my dotfiles.

Requirements for use

  • git
  • curl

Requirements for contribution (check pre-commit config)

  • pre-commit
  • shfmt
  • shellcheck
  • gitleaks

Install

Install brew first (follow the instructions from the homebrew website)

Please read the script before executing:

curl -Lks https://raw.githubusercontent.com/anden-dev/dotfilesv2/main/bin/install.sh | /bin/bash

In a nutshell

This:

  • creates a bare repo in ~/.dot and track all the files in the ~.
  • adds all files in ~ to .gitignore, so that we don't add any private files into git inadvertently (files MUST be added forcefully using -f flag)
  • creates a special git alias named dot which is specifilly for working with the dotfiles located in ~

Usage

dot add -f .a-dot-file
dot commit -m "Added .a-dot-file"
dot push origin master

Installation

Carefull idiot install (check the script before you run this)

curl -Lks https://raw.githubusercontent.com/anden-dev/dotfilesv2/main/.bin/install.sh | /bin/bash
alias dot='git --git-dir=$HOME/.dot/ --work-tree=$HOME'

About

License:MIT License


Languages

Language:Shell 100.0%