![charging-chime-mac.jpg](https://www.cnet.com/a/img/resize/542e07a29affc6ef8e01b0bec049c75cf52a98b0/hub/2015/04/28/c4283d3f-52c0-4b79-81cd-13c6a7f4fb94/charging-chime-mac.jpg?auto=webp&width=1200)
Screenshot by Matt Elliott/CNET
If you have come to enjoy the satisfying chime your iPhone emits when you plug it in to charge it, then you might want, for the sake of consistency or convenience, to hear the same chime when you plug in your MacBook Air or MacBook Pro. (The new 12-inch MacBook features such a sound effect out of the box.)
All it takes to add the charging chime to an old MacBook is a simple Terminal command. And, according to OS X Daily, you will need to be running OS X Yosemite 10.10.3 or later.
First, open Terminal via Spotlight or by going to Applications > Utilities.
Next, copy and paste this command into Terminal and hit Enter:
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &
Now, disconnect your MacBook from the power cord and then reconnect it and you will hear the familiar chime.
If you grow tired of hearing the chime, you can undo this change by entering this command into Terminal and pressing Enter:
defaults write com.apple.PowerChime ChimeOnAllHardware -bool false;killall PowerChime