You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cache commands using bkt if installedifcommand -v bkt >&/dev/null;thenbkt() { command bkt "$@"; }
else# If bkt isn't installed skip its arguments and just execute directly.# Optionally write a msg to stderr suggesting users install bkt.bkt() {
while [[ "$1"== --* ]];doshift;done"$@"
}
fi# Now you can call bkt (the function) just like you'd call bkt (the binary):
bkt -- expensive_cmd ...
The text was updated successfully, but these errors were encountered:
https://github.com/dimo414/bkt
Def. use the "decorator" method for it:
The text was updated successfully, but these errors were encountered: