First, prepare the home directory structure, so that non-config files don't creep in:
mkdir -p ~/.{ansible,clojure,config,cpan,lein} \
~/.sbt/{0.13,1.0}/plugins \
~/.ipython/profile_default/startup \
~/.jupyter/lab/user-settings/@jupyterlab/{apputils,codemirror,docmanager,fileeditor,notebook,shortcuts,statusbar}-extension
Install dotfiles/ with GNU Stow:
git clone https://github.com/chbrown/config
cd config
stow --ignore=DS_Store -t $HOME -S dotfiles
N.b.: stow's --ignore=REGEX option implicitly adds an $ to the end.
.bashrc sources ~/.localrc if it exists.
echo 'export MACHINE=local' > ~/.localrc
Install the other macOS-only configuration files:
stow -t $HOME -S macOS
Unstow:
stow -t $HOME -D dotfiles
stow -t $HOME -D macOS
Create directories so that only files are linked:
ALFRED=~/Dropbox/Alfredv2/Alfred.alfredpreferences
(cd alfred && find . -type d) | (cd $ALFRED && xargs mkdir -p)
Link all files:
stow -t $ALFRED -S alfred
/etc/paths should look something like this:
/usr/sbin
/usr/bin
/sbin
/bin
These are loaded into the PATH variable, separated by colons.
/etc/path.d/* might also contain some files. These are put after the contents of /etc/paths.
This repository also provides a new_mac.sh script that helps configure an OS X install with reasonable defaults.
It does a few things:
chown's the system Python site-packages to the current user.- Installs some basic useful packages with Homebrew.
- Uses
defaultsto remove many animations, disable a few warnings, overall making OS X more expert-friendly.
Copyright © 2011-2017 Christopher Brown. MIT Licensed.