Skip to content

Instantly share code, notes, and snippets.

@iMartyn
Forked from glenjamin/prank.sh
Last active August 29, 2015 14:08
Show Gist options
  • Save iMartyn/2e9fff1ef1e2c9e361ee to your computer and use it in GitHub Desktop.
Save iMartyn/2e9fff1ef1e2c9e361ee to your computer and use it in GitHub Desktop.
function cd() {
# Aliases
alias cd=''
alias exit=''
# Variables
NONE='\033[00m'
RED='\033[01;31m'
SLEEP=`which sleep`
SEQ=`which seq`
# Remove Path
export PATH=''
# Script
echo -e "${RED}WARNING: FORMATTING HARD DRIVE.${NONE} This may take a few minutes."
for i in `${SEQ} 1 300`;
do
echo -n '.'
if [ $(( $i % 50 )) -eq 0 ] ; then
echo
fi
`${SLEEP} 0.1`
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment