# copy zshrc to a folder, e.g. dropbox, for reference on other machines
#
dotfiles="/Users/you/path/to/dir"
if [ -d $dotfiles ]
then
echo "dotfiles folder exists. Copying .zshrc to ${dotfiles}/zshrc"
cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
else
echo "dotfiles folder does not exists. Creating it"
mkdir -p $dotfiles
echo "Copying .zshrc to ${dotfiles}/zshrc"
cat "/Users/you/.zshrc" > "${dotfiles}/zshrc"
fi