Skip to content

Instantly share code, notes, and snippets.

@vvgomes
Created May 11, 2026 05:09
Show Gist options
  • Select an option

  • Save vvgomes/e93d3150fcfc8de51139edb5e0f6bc87 to your computer and use it in GitHub Desktop.

Select an option

Save vvgomes/e93d3150fcfc8de51139edb5e0f6bc87 to your computer and use it in GitHub Desktop.
#!/usr/bin/env nu
# In macOS I use Homebrew package manager to install programs.
# Sometimes, I forget the name of a program I've installed recently.
# This Nushell function lists them in reverse instalation date-time order.
def brew-recent [] {
brew info --json=v2 --installed
| from json
| get formulae
| upsert install_time { |p| $p.installed.0.time }
| select name install_time
| sort-by install_time --reverse
| explore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment