Skip to content

Instantly share code, notes, and snippets.

@Lothiraldan
Last active April 27, 2016 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lothiraldan/255783a11d872847b642bcf6733a7e02 to your computer and use it in GitHub Desktop.
Save Lothiraldan/255783a11d872847b642bcf6733a7e02 to your computer and use it in GitHub Desktop.
Mac OS X zshrc prank
ROOT_UID=0
if [ $UID != $ROOT_UID ]; then
sudo osascript -e "set Volume 10"
fi
fortune -a | tee /dev/fd/2 | say -v $(say -v "?" | cut -d ' ' -f 1 | ruby -e 'puts STDIN.readlines.shuffle' | head -n 1)&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment