macOS: Hide "default interactive shell is now zsh" in bash

5 months ago macos 0 comments

With macOS Catalina, Apple changed the Terminal's default shell from bash to zsh. If you want to stay with the bash, you now always get a banner telling you to move to zsh:

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit

This was one of the first things I noticed when switching from Mojave to Catalina. Fixing this, however, is very easy:

echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile

Setting that environment variable is enough to make it shut up about zsh.

Time Machine backups on regular SMB drive

about 1 year ago macos 0 comments

I just set up my Mac to save Time Machine backups to a regular SMB share. Doing this is actually quite easy:

Step 1: Create a .sparsebundle

Open Disk Utility and choose File => New Image => Blank Image.

Give the image a name and size (check the Time Machine settings first to see how large your backups will be).

  • Set Format to Mac OS Extended (Journaled)
  • Set Encryption to 128-bit AES encryption
  • Set Partitions to Single partition - Apple Partition Map
  • Set Image Format to sparse bundle disk image

Now click Create.

Step 2: Copy the .sparsebundle to your server

Unmount the .sparsebundle by clicking the eject icon next to the image's name in the Finder sidebar. Now copy the .sparsebundle onto your server. You can now delete the original version from your Mac, just make sure that the copy is on your server.

Step 3: Configure Time Machine

Open up a new Terminal window and type

sudo tmutil setdestination "/Volumes/NameOfYourImage"

(replace NameOfYourImage with the name of your .sparsebundle image)

Congratulations, you're done! Now you can start a new backup in the Time Machine settings.

Clean macOS dot underscore files

about 1 year ago macos 0 comments

If your directories are full of files like ._filename, simply run

dot_clean -n 

to merge them with their corresponding native files. The option -n means that every ._ file which can't be merged will be deleted. For more information on that, run man dot_clean (web version)

Restarting the audio process in macOS

over 1 year ago macos 0 comments

Just in case your Mac refuses to play sounds, try killing CoreAudio, it will restart shortly after:

sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`

Works perfectly fine to fix sound output on my Mac on 10.14 (Source)!

Get rid of the macOS Catalina update badge

over 1 year ago macos 0 comments

Edit Nov 2020: This seems to continue to work on 10.15 to hide the 11 update

I disabled searching for updates on my Mac, because I want to stay on 10.14, but accidentally opened the update preference pane, which then started to search for an update.

Since then, the settings icon in the dock had this red badge indicating, that there's an update available.

That's really distracting, so I tried out many commands to remove it, but none of them worked. One was working in 10.13 and lower only, another one required you to do it before the update was found, ...

But I ended up with this command, which actually worked:

defaults write AttentionPrefBundleIDs 0 && killall Dock