Home

Awesome

Dotfiles, managed by Stow

This project is a refactor of my old dotfiles, updated for macOS Sierra 10.12.0, using gnu stow and a conf.d like approach to .bash_profile, .profile and similar files.

This is still work in progress — use with caution.

Installation

cd ~/
curl -L https://raw.githubusercontent.com/ChristopherA/dotfiles-stow/master/5-macos/.install/macos-allupdates.sh | bash
curl -L https://raw.githubusercontent.com/ChristopherA/dotfiles-stow/master/5-macos/.install/brew-updates.sh | bash
git clone git@github.com:ChristopherA/dotfiles-stow.git ~/.dotfiles
~/.dotfiles/5-macos/.install/brew-updates.sh
cd ~/.dotfiles
stow 0-shell # Minimum set of shell configuration
stow 1-shell-git # Adds git & gpg commit integration to shell
stow 2-shell-git-bash-git-prompt # Adds 'brew install bash-git-prompt' prompt and colors
stow 2-shell-git-hub # Adds github-specific 'brew install hub'
stow 2-shell-nano # optionally install nano editor (on mac allows use of mouse in Terminal)
stow 5-macos # optionally install some additional macOS Sierra specific scripts
stow 5-macos-harden # optionally install any macOS Sierra hardening scripts
stow 6-macos-git-atom # optionally use atom for git commit
stow 6-macos-hardest # even more paranoid macOS Sierra hardening scripts (requires 'stow-harden' first)
./stowall
source ~/.install/macos-setup.sh

Uninstall

cd ~/.dotfiles ; stow -Dv 0-shell 1-shell-git 2-shell-git-bash-git-prompt 2-shell-git-hub 2-shell-nano 5-macos 5-macos-harden 6-macos-git-atom 6-macos-hardest ; cd -

After Changes

If you add or delete files in your .dotfiles stows, you can update them with (same as -D followed by -S):

cd ~/.dotfiles ; stow -R 0-shell 1-shell-git 2-shell-git-bash-git-prompt 2-shell-git-hub 2-shell-nano 5-macos 5-macos-harden 6-macos-git-atom 6-macos-hardest ; cd -