#!/bin/zsh if test -d wiki then echo "Directory 'wiki' already exists..." exit 1 else git clone https://github.com/OfflineIMAP/offlineimap.wiki.git wiki cat </offlineimap-wiki.git You can now push your WIPs with: $ git push myfork : EOF fi