/dotfiles

Primary LanguageLua

Dotfiles

setup:

# enter home directory
cd

# clone bare into ~/.dotfiles folder
git clone git@github.com:arekmaz/dotfiles.git --bare .dotfiles

# checkout the actual content from the bare repository in ~
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME checkout main .

# set the global flag excludesFile to the .gitignore.defaults file
git config --global core.excludesFile '~/.gitignore.defaults'

# exit the shell or run: `source ~/.bashrc`

# from now on you can use the `dot` script as a replacement for `git` command for dotfiles
# alternatively you can use the `lazydot` if you have [lazygit](https://github.com/jesseduffield/lazygit) installed