Skip to content

OMG 0.2.0

Choose a tag to compare

@akramcodez akramcodez released this 27 Nov 06:20

OMG (Oh My Gigabytes) 0.2.0: see where your disk space went and take it back. omg scans file metadata into a private local index, explains which developer caches, build folders, old toolchains and leftovers take space, and deletes what you choose after you confirm.

Development preview. Delete is permanent and not qualified on any platform. Read Deleting files before you use it. Nothing is uploaded.

What's new since 0.1.0

  • Auto delete. Off by default. Turn it on from the options menu (m) or with omg auto-delete on --every 7, after a permission screen. omg then deletes what has waited unchanged in OMG Trash for 1 day, 7 days, 1 month or 6 months, in the background. Changed items wait again, K keeps an item out, whole repositories, application data and toolchains need a second permission, and by default it runs only on mains power. omg auto-delete status --items says why each item is due, waiting or kept, and turning it off takes effect at once.
  • D empties OMG Trash after one confirmation that shows every item and its warnings.
  • Removed suggestions come back once they have doubled, grown by 1 GB, or after 30 days.
  • omg trash --add PATH and --remove PATH manage OMG Trash from the shell.
  • More developer leftovers: Poetry, PDM, Hatch, pipx and Yarn 2+ caches, Bazel output (Linux), SwiftUI previews and watchOS, tvOS and visionOS device support. Listed only: Simulator devices, Android system images, Vagrant boxes, .NET SDKs and old editor compiled code.
  • Interface: a total at the top of Findings, an explanation of partial scans (and which macOS privacy setting to allow), better small terminals and a new scan animation.
  • omg doctor reports auto delete and catches a scheduled job whose omg binary is gone (after npm uninstall or an nvm switch).
  • Fixes: Docker build cache with several items now cleans; omg tree on an excluded folder reports unknown instead of 0 bytes; the Linux link refusal names the link; the scan progress estimate uses the last scan of the same folder.

Full list: CHANGELOG.md.

Install

npm install --global oh-my-gigabytes
omg

Needs Node 22 or newer. The first run scans your home folder (omg scan --root ~/code scans any other folder). Press 1 to 5 to switch views, ? for all keys, q to quit.

To uninstall, run omg auto-delete off and omg schedule disable (macOS, Windows) or omg service uninstall (Linux) first, then npm uninstall --global oh-my-gigabytes.

Platforms

System Scans Deletes on
Linux x86_64, ARM64 (glibc 2.28+, kernel 5.6+) ext4, XFS, Btrfs, tmpfs ext4, Btrfs, tmpfs
Windows 11 x64 NTFS, ReFS NTFS
macOS 15+ on Apple silicon APFS, HFS+, exFAT, FAT APFS

The signed packages were installed and tested by hand on an Apple silicon Mac, including delete scenarios and an upgrade of an existing index. The same binaries were tested by hand on a Windows 11 PC and Ubuntu 24.04 under WSL2, including delete in a throwaway folder. Every target also runs the full test suite on hosted runners. No platform is certified.

Verify

Every launch checks the native binary against an Ed25519-signed manifest and refuses one that does not match. The release key fingerprint is unchanged from 0.1.0:

01deacfe588025e045419b57c4f39abd9f151294c8310e0a0dd28a18c9d9adc0

It must match KEY-FINGERPRINT.txt below. To install a downloaded file offline:

shasum -a 256 -c SHA256SUMS --ignore-missing    # Linux: sha256sum -c SHA256SUMS --ignore-missing
npm install --global --ignore-scripts --offline ./oh-my-gigabytes-offline-<target>-0.2.0.tgz

Files

File What it is
oh-my-gigabytes-offline-<target>-0.2.0.tgz Everything for one system in a single file, for offline installs. Targets: darwin-arm64, linux-x64-gnu, linux-arm64-gnu, win32-x64
oh-my-gigabytes-0.2.0.tgz and oh-my-gigabytes-<target>-0.2.0.tgz The packages published to npm
SHA256SUMS Checksums of every package
release-public.pem, KEY-FINGERPRINT.txt The public release key and its fingerprint
dependency-inventory.cdx.json Software bill of materials (CycloneDX)

Not in this release

Moving to the system trash (delete is permanent, with no undo), a background scan service on macOS or Windows (a daily scan-only job is available), Apple notarization, Windows Authenticode signing, Intel Macs, Windows on Arm and musl Linux.

Known issues

  • Credential files are protected by folder name (.ssh, .aws, credentials and others) and by type (.pem, .key, .env, databases). Other secret files, such as credentials.json or ~/.npmrc, are not recognized yet, so check what you add to OMG Trash yourself.
  • Freed space can be less than shown when hard links, APFS clones or snapshots share data. "Unused for 5 months" goes by when files last changed, not when an app was last opened.

Report a problem

Bugs: Issues. Security problems: privately, as described in SECURITY.md.

MIT OR Apache-2.0.