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 ⌘ Command Code, the most used coding agent for open models: 160K+ users, 50K+ paying customers. Founded Langbase (AI cloud for agents with memory & tools).

"What an awesome example for developers." — Satya Nadella, CEO of Microsoft, on my NASA Ingenuity code.

NASA Ingenuity Mars Helicopter code contributor · 6× GitHub Star, one of the first 8 Gold Stars · #1 trending JavaScript developer on GitHub · 6× Google Developer Expert · 6× Microsoft MVP.

Ex VP DevRel & DevTools at RapidAPI · Google Developers Advisory Board (gDAB) founding member · OpenAPI Business Governing Board, Linux Foundation · SF DevNetwork AI/ML Advisory Board · Angel investor (Replit, Resend, Daytona, Gumroad and you?).

Award-winning open source engineering leader: 300+ projects, 50–100M downloads a year, including Shades of Purple (5M+ developers) and corona-cli (10B+ queries).

Taught 217K+ developers via NodeCLI.com and VSCode.pro. 160+ talks. Blogging since 2000, billions of views.

❯ Read more about Ahmad Awais or come say hi on 𝕏 @MrAhmadAwais.

Newsletter

The Developer Takeaway

Founder notes on AI, dev tools, and building developer products. No spam.

247,813+ developers 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.