-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support binaries in addition to functions #24
Comments
Note that you can define trivial functions that delegate to commands and cache that, via the ls() { command ls "$@"; } && bc::cache ls 1m 10s PWD This is what I would generally recommend. Supporting arbitrary binaries is tricky because they can be referenced multiple ways; e.g. I'd love to support zsh (though we'd have to do #11 if we did so 😄), but I have no plans to drive that at the moment. I'd be happy to work with someone interested in contributing support though. |
Thanks for the response! Had forgotten about this one, sorry. I hacked some lightweight form of caching without delegating it to a library. It seemed enough for my needs. |
As an update here, I'm in the process of publishing |
Cheers! Starred |
Hi!
I'm interested in using this project. However I'm a zsh user. I noticed #16 .
Indeed it seems a hassle to port scripts, so I thought - why not make
bc::cache
additionally accept filenames denoting a script whenfunc
is not a function?I think that would be it - would you be willing to give it a shot?
Would gladly provide feedback afterwards.
Thanks - V
The text was updated successfully, but these errors were encountered: