/dotfiles

A portable collection of configurations and scripts

Primary LanguageShellMIT LicenseMIT

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

1 Setup Extra Packages for Enterprise Linux (EPEL)

2 Install Git on Linux

Either via Binary, or Package Manager (preferred).

3 Create a GitHub account

4 Connect to GitHub using SSH

5 Fork the dotfiles repo

Forking dotfiles is a simple two-step process.

  1. On GitHub, navigate to the https://github.com/ecwpz91/dotfiles repo.
  2. 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