Dotfiles are the customization files that are used to personalize your Linux or other Unix-based system. You can tell that a file is a dotfile because the name of the file will begin with a period--a dot! The period at the beginning of a filename or directory name indicates that it is a hidden file or directory. This repository contains my personal dotfiles. They are stored here for convenience so that I may quickly access them on new machines or new installs. Also, others may find some of my configurations helpful in customizing their own dotfiles.
Clone Repo (https):
git clone --bare https://github.com/AtifChy/dotfiles.git $HOME/.local/share/dotfiles
Clone Repo (git):
git clone --bare [email protected]:AtifChy/dotfiles.git $HOME/.local/share/dotfiles
Add dotfile alias to .bashrc or .zshrc:
alias dotfile='git --git-dir=$HOME/.local/share/dotfiles --work-tree=$HOME'
Ignore unnecessary files (IMPORTANT):
dotfile config --local status.showUntrackedFiles no
To stop README.md file from being downloaded (Optional):
dotfile config core.sparsecheckout true
touch $HOME/.config/dotfiles/info/sparse-checkout
echo '/*'>>$HOME/.local/share/dotfiles/info/sparse-checkout
echo '!README.md'>>$HOME/.local/share/dotfiles/info/sparse-checkout
Replace existing files with the files from the repo:
dotfile checkout -f