Skip to content

Instantly share code, notes, and snippets.

@benpickles
Created November 25, 2010 14:33
Show Gist options
  • Save benpickles/715466 to your computer and use it in GitHub Desktop.
Save benpickles/715466 to your computer and use it in GitHub Desktop.
Make a "ding" sound on your Mac!
# .___.__
# __| _/|__| ____ ____
# / __ | | |/ \ / ___\
# / /_/ | | | | \/ /_/ >
# \____ | |__|___| /\___ /
# \/ \//_____/
#
# Make a "ding" sound on your Mac! Useful for notifying you when a command
# line script has finished.
#
# Examples:
#
# 1. Get notified when your large file has been transferred:
#
# $ scp really-large-file my-server:~ && ding
#
# 2. Make your computer go "ding" just for fun:
#
# $ ding
#
# Other built-in sounds to try:
#
# /System/Library/Sounds/Basso.aiff
# /System/Library/Sounds/Blow.aiff
# /System/Library/Sounds/Bottle.aiff
# /System/Library/Sounds/Frog.aiff
# /System/Library/Sounds/Funk.aiff
# /System/Library/Sounds/Glass.aiff
# /System/Library/Sounds/Hero.aiff
# /System/Library/Sounds/Morse.aiff
# /System/Library/Sounds/Ping.aiff
# /System/Library/Sounds/Pop.aiff
# /System/Library/Sounds/Purr.aiff
# /System/Library/Sounds/Sosumi.aiff
# /System/Library/Sounds/Submarine.aiff
# /System/Library/Sounds/Tink.aiff
#
# And now for the magic!
afplay /System/Library/Sounds/Glass.aiff
# Seriously too easy to do this, was it even worth it?
@gourneau
Copy link

cute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment