Created
May 11, 2026 05:09
-
-
Save vvgomes/e93d3150fcfc8de51139edb5e0f6bc87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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