#!/bin/sh # No args, copy the current directory to your dropbox if [[ x"$1" = x ]]; then cp -R . ~/Dropbox/${PWD##*/} # Copy all given filenames to your dropbox else cp -R "$@" ~/Dropbox/ fi