Skip to content

Instantly share code, notes, and snippets.

@chrismetcalf
Created February 7, 2010 19:08
Show Gist options
  • Save chrismetcalf/297599 to your computer and use it in GitHub Desktop.
Save chrismetcalf/297599 to your computer and use it in GitHub Desktop.
#!/bin/sh
PATH=$HOME/.homedir/bin:$PATH
pushd $HOME
echo "Setting up .ssh directory"
if [[ ! -d .ssh ]]; then
echo ".ssh doesn't exist yet, creating..."
mkdir .ssh
fi
dircombine '.*' .ssh $HOME/.homedir/.ssh
echo "Linking in .dotfiles..."
dircombine '.*' . $HOME/.homedir
echo "Done!"
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment