#!/bin/bash . $HOME/.shenv . $HOME/src/dotfiles/lib-src/tputfs.sh skelhere () { usbpubkeys mkdir -p doc bin lib cp -RLf ~/lib/annex/big/skel/usb/* . cp ~/src/dotfiles/bin/{apple-setup.sh,dasl-setup.bat} bin cp -L ~/lib/pro.terminal lib cp -L "$HOME/lib/annex/doc/sounds/Rainy Mood pomodoro.mp3" lib zip -j lib/spwhitton.zip lib/*.reg bin/* # status now you might want to clone ~/lib/dionysus\; see comproc.org } while true; do read -p "This might overwrite stuff in $(pwd). Is that okay? " yn case $yn in [Yy]* ) skelhere; break;; [Nn]* ) exit;; * ) echo "Please answer yes or no.";; esac done