Skip to content

A backup repository for storing configuration files.

Notifications You must be signed in to change notification settings

Luis-Licea/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A backup repository for storing configuration files.

Resources

Stars

Watchers

Forks