WeSearch

I built a zsh cleanup script for macOS dev machines — and learned more than I expected

·4 min read · 0 reactions · 0 comments · 9 views
#development#macos#scripting#productivity
I built a zsh cleanup script for macOS dev machines — and learned more than I expected
⚡ TL;DR · AI summary

Mili Cardenas developed a zsh cleanup script for macOS development machines to help manage accumulated junk files. The script, named clean-mac, targets 18 categories of development waste and includes a dry-run mode to preview deletions. Throughout the process, Cardenas encountered various bugs related to zsh syntax and behavior that provided valuable learning experiences.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 1621279) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Mili Cardenas Posted on May 27 I built a zsh cleanup script for macOS dev machines — and learned more than I expected #devtools #shell #productivity #mobile If you do iOS and Android development on a Mac, your disk is quietly dying.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)