Skip to content
/ dots Public

Bare(ly) managed dotfiles (with a bare git repo)

Notifications You must be signed in to change notification settings

oessaid/dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles configuration

Showcase

Neovim inside tmux inside kitty inside yabai on MacOS.

image

Installing in a new system

Clone the repo into a bare repository inside $HOME:

git clone --bare git@github.com:oessaid/dots.git $HOME/.dotfiles

Define the management command alias (dots) inside the current shell scope:

alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'

Checkout the actual content from the bare repository to $HOME

dots checkout

Errors might pop up at this point because $HOME might have some stock versions of configuration files (.bashrc, .zshrc, etc.). Delete them (or back them up), then re-run the above command.

Ignore any untracked files (to avoid unnecessary clutter of dots status) using

dots config --local status.showUntrackedFiles no

Usage

Updating dotfiles and pushing changes becomes very easy:

dots status
dots add .zhsrc
dots commit -m "Add .zshrc"
dots push

About

Bare(ly) managed dotfiles (with a bare git repo)

Resources

Stars

Watchers

Forks