Repository containing dotfiles configuration.

Charles Reid 256d51684d deleting an evil line. 2 weeks ago
init f1d4c52113 add initial dotfiles version. 4 weeks ago
.aliases f1d4c52113 add initial dotfiles version. 4 weeks ago
.bash_profile f1d4c52113 add initial dotfiles version. 4 weeks ago
.bash_prompt f1d4c52113 add initial dotfiles version. 4 weeks ago
.bashrc f1d4c52113 add initial dotfiles version. 4 weeks ago
.curlrc f1d4c52113 add initial dotfiles version. 4 weeks ago
.exports f1d4c52113 add initial dotfiles version. 4 weeks ago
.functions f1d4c52113 add initial dotfiles version. 4 weeks ago
.gdbinit f1d4c52113 add initial dotfiles version. 4 weeks ago
.gitattributes f1d4c52113 add initial dotfiles version. 4 weeks ago
.gitconfig f1d4c52113 add initial dotfiles version. 4 weeks ago
.gitignore f1d4c52113 add initial dotfiles version. 4 weeks ago
.gvimrc f1d4c52113 add initial dotfiles version. 4 weeks ago
.hushlogin f1d4c52113 add initial dotfiles version. 4 weeks ago
.inputrc f1d4c52113 add initial dotfiles version. 4 weeks ago
.screenrc f1d4c52113 add initial dotfiles version. 4 weeks ago
.tmux.conf f1d4c52113 add initial dotfiles version. 4 weeks ago
.vimrc 256d51684d deleting an evil line. 2 weeks ago
.wgetrc f1d4c52113 add initial dotfiles version. 4 weeks ago
LICENSE-MIT.txt f1d4c52113 add initial dotfiles version. 4 weeks ago
README.md f1d4c52113 add initial dotfiles version. 4 weeks ago
bootstrap.sh 66e4fffec8 add line break 4 weeks ago
brew.sh f1d4c52113 add initial dotfiles version. 4 weeks ago
mac_settings.sh f1d4c52113 add initial dotfiles version. 4 weeks ago
pre_bootstrap.sh f1d4c52113 add initial dotfiles version. 4 weeks ago
set_machine_name.sh f1d4c52113 add initial dotfiles version. 4 weeks ago

README.md

charlesreid1's dotfiles

Forked from mathiasbyens/dotfiles.

Divorced because conflicts.

Github user mathiasbyens released his well-curated dotfiles on Github. I combined these with charlesreid1/yargwid.

This repository contains the current version of my dotfiles.

Installation

Steps:

  • Clone the repo
  • Make modifications as needed
  • Run the brew script
  • Run the pre-bootstrap script
  • Run the bootstrap script
  • Run the Homebrew script

Step 1: clone the repo:

git clone https://github.com/charlesreid1/dotfiles.git 

# or 

git clone https://charlesreid1.com:3000/charlesreid1/dotfiles.git 

Step 2: make modifications as needed (use vim!)

Step-Before-3: make sure you have a brew version of bash:

ls /usr/local/bin/bash

or modify the script pre_bootstrap.sh to set the shell to the system bash at /bin/bash. (Warning: do this at your own risk. I promise it will cause you headaches.)

Step 3: run the pre-bootstrap script. This will set your shell to Homebrew bash and create a vim undo/swap directory:

./pre_bootstrap.sh

Step 4: Run the bootstrap script

./bootstrap.sh

Step 5: run the Homebrew script (this could take a while, so grab a hot or cold beverage):

./homebrew.sh

Explanation

Custom Commands Without Committing

Use the ~/.extra file to set any extra settings without committing them to the repository.

# Git credentials
# Not in the repository
# This prevents people from using my github credentials
GIT_AUTHOR_NAME="Charles Reid"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="charlesreid1@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Also use the .extra file to override settings, functions, etc from other dotfiles.

Setting $PATH

Use the ~/.path file to set the $PATH variable. This is run before other files like .aliases, so it should pick up the correct version of binaries in subsequent sourced dotfiles.

Example ~/.path (actually set in .bash_profile but just an example):

export PATH="/usr/local/bin:$PATH"

Sensible macOS defaults

When setting up a new Mac, you may want to set some sensible macOS defaults:

./mac_settings.sh

Install Homebrew formulae

When setting up a new Mac, you may want to install some common Homebrew formulae (after installing Homebrew, of course):

./brew.sh

Some of the functionality of these dotfiles depends on formulae installed by brew.sh. If you don’t plan to run brew.sh, you should look carefully through the script and manually install any particularly important ones. A good example is Bash/Git completion: the dotfiles use a special version from Homebrew.

Authors

Most of the hard work was done by:

Mathias Bynens

A bit of polishing was done by:

Charles Reid

Mathias' Thanks Section