Dotfiles
A dotfile (plural dotfiles) is generally any file whose name begins with a full stop, or starts with a dot.
Commonly found on Unix-like systems, they provide user specific customization, and are analogous to Batman's utility belt.
To get started on Red Hat and CentOS (YUM), or Fedora (DNF) use the instructions below.
Install Using Git
Extra Packages for Enterprise Linux (EPEL)
1 Setup2 Install Git on Linux
Either via Binary, or Package Manager (preferred).
Create a GitHub account
3Connect to GitHub using SSH
4dotfiles
repo
5 Fork the Forking dotfiles
is a simple two-step process.
- On GitHub, navigate to the https://github.com/ecwpz91/dotfiles repo.
- In the top-right corner of the page, click Fork.
That's it! Now, you have a fork of the original https://github.com/ecwpz91/dotfiles repo.
6 Create a local clone of your fork
Right now, you have a fork of the dotfiles
repo, but you don't have the files in that repo on your computer.
Open a new terminal to copy & paste the following, which will create a clone of your fork locally on your computer.
DIRPATH="${HOME}/github" \
&& GITUSER="ecwpz91" \
&& GITREPO="git@github.com:${GITUSER}/dotfiles.git" \
&& ARCHIVE="$(printf "%s" "${GITREPO##*/}")" \
&& mkdir -p "${DIRPATH}/${GITUSER}" \
&& pushd "${DIRPATH}/${GITUSER}" &>/dev/null \
&& git clone "${GITREPO}" \
&& git remote add upstream https://github.com/ecwpz91/dotfiles \
&& git remote set-url --push upstream no_push \
&& popd &>/dev/null \
&& unset DIRPATH GITUSER GITREPO ARCHIVE temp
No git? No problem!
Open a new terminal to copy & paste the following, which will download and extract the repository into your local ~/Downloads
folder.
DIRPATH="${HOME}/Downloads/dotfiles" \
&& GITUSER="ecwpz91" \
&& GITREPO="https://github.com/${GITUSER}/dotfiles/archive/master.zip" \
&& ARCHIVE="$(printf "%s" "${GITREPO##*/}")" \
&& curl -LO "${GITREPO}" \
&& temp="$(mktemp -d)" \
&& unzip -d "${temp}" "${ARCHIVE}" \
&& mkdir -p "${DIRPATH}" \
&& mv "${temp}"/*/* "${DIRPATH}" \
&& rm -rf "${temp}" "${ARCHIVE}" \
&& unset DIRPATH GITUSER GITREPO ARCHIVE temp