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.
Either via Binary, or Package Manager (preferred).
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.
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="[email protected]:${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 tempOpen 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