3 ms·
I literally don't understand the first example. What just happened here? Did pkgx see that I failed to run bun and then just like... installed it and ran it for
by mdeeks 3y ago
I literally don't understand the first example. What just happened here? Did pkgx see that I failed to run bun and then just like... installed it and ran it for me? Does that mean on my next prompt I should run `bun` or should I run `pkgx` again?
$ bun
command not found: bun
^^ type `pkgx` to run that
$ pkgx
running `bun`…
Bun: a fast JavaScript runtime, package manager, bundler and test runner.
# …
- mpalmer 3y agoBased on the examples that follow, it seems like pkgx tracks shell history so it can default to the last command if and only if it doesn't exist on $PATH.
- AnthonBerg 3y agoIt might have one splendidly named thefuck under the hood: https://github.com/nvbn/thefuck https://github.com/nvbn/thefuck