priba / dots-1

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)


Languages

Language:Lua 78.9%Language:Shell 16.2%Language:Ruby 4.8%