Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.05 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.05 KB

dotfiles

A backup repository for storing configuration files.

Clone the repo into a dotfiles directory:

git clone --bare https://github.com/Luis-Licea/dotfiles $HOME/.config/dotfiles/ --recurse-submodules

Define the aliases in .bashrc or .zshrc to access repo from anywhere:

alias dotfiles="git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME"
dotfiles config --local status.showUntrackedFiles no
alias dotfilesui="gitui -d $HOME/.config/dotfiles/ -w $HOME"

A token is necessary for pushing changes.

dotfiles push -u origin master
# Username: <type your username>
# Password: <type your password or personal access token (GitHub)>

Check Git configurations.

git config -l

Checkout the content from the bare repository to '$HOME':

dotfiles checkout

View tracked files and changes that need to be committed:

dotfilesui

Backup Checklist

  • GPG keys in $GNUPGHOME.
  • SQL databases.
  • SSH keys.
  • Unit files in ~/.config/systemd/user
  • /etc folder.
  • /home/<user> directory.