Skip to content

Instantly share code, notes, and snippets.

@oPromessa
oPromessa / .zlogin
Created September 20, 2025 19:03
macOS: Terminal: zsh function to show status of Time Machine: attempts to mount SMB Backup destinations and list the backups.
#------------------------------------------------------------------------------
# Report Time Machine status
function tminfo {
function mount_table() {
mount | awk '
{
# Find "on" and "(" positions
for(i=1;i<=NF;i++) {
if($i=="on") on_idx=i