Ahmad Awais

NAVIGATE


SHARE


Zip WordPress theme through Terminal and ignore DS_Store

Ahmad AwaisAhmad Awais

Since the day I shifted to Macbook, I fell in love with Terminal. Terminal is minimal, hackable, fast and to the point. There are so many benefits of being a terminal junkie that I’d have to write another post some day. Today I intend to write about how I zip WordPress themes through terminal whilst ignoring hidden .DS_Store files added by Mac OS in each folder.

The command#

zip -r theme.zip themefolder -x "*.DS_Store"

Yes, no goofy third party applications needed at all. Just rely on all of the unix tool goodness built right in to MacOS/OSX.

Founder & CEO of Langbase.com โ€” The most powerful serverless AI developer platform for building AI products ยท Ship agentic AI pipes, tools, and memory with BaseAI โ€” The first Web AI Framework (free, open-source, local-first, deploys serverless, agentic pipes, tools, and memory)

Ex VP DevTools & DevRel Eng. Rapid ยท Google Developers Advisory Board (gDAB) founding member. ๐Ÿง‘โ€๐Ÿ’ป AI/ML/DevTools Angel Investor โฏ AI/ML Advisory Board San Francisco, DevNetwork

๐ŸŽฉ Award-winning Open Source Engineer & Dev Advocate ๐ŸฆŠ Google Developers Expert Web DevRel ๐Ÿš€ NASA Mars Ingenuity Helicopter mission code contributor ๐Ÿ† 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

๐ŸŒณ Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. ๐Ÿ“Ÿ Teaching thousands of developers Node.js CLI Automation and VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

โœŒ๏ธ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide โ“ฆ WordPress Core Developer ๐Ÿ“ฃ TEDx Speaker with 100+ international talks.

โœจ As quoted by: Satya Nadella ยท CEO of Microsoft โ€” Awais is an awesome example for developers.
๐Ÿ’œ Loves his wife (Maedah) โฏ Read more about Ahmad Awais.

๐Ÿ‘‹โ€ฆ Awais is mostly active on ๐• @MrAhmadAwais

๐Ÿ“จ

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

โœจ 172,438 Developers Already Subscribed
Comments 2
  • Saqb
    Posted on

    Saqb Saqb

    Reply Author

    Thanks for sharing this.

    There is also this free app https://goo.gl/IwoDPu to remove .DS_Store files


    • Ahmad Awais
      Posted on

      Ahmad Awais Ahmad Awais

      Reply Author

      Yes, thanks for sharing it but with the terminal, things are more in control and sleek.