dimo414 / bash-cache

Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
GNU General Public License v3.0
73 stars 4 forks source link

Investigate other prompt libraries that do expensive work #4

Closed dimo414 closed 4 years ago

dimo414 commented 6 years ago

Original report by Michael Diamond (Bitbucket: dimo414).


Known examples:

From https://bitbucket.org/dimo414/prompt.gem/issues/5

dimo414 commented 6 years ago

Original comment by Michael Diamond (Bitbucket: dimo414).


Came across https://bitbucket.org/sivann/runcached which provides a Bash cache utility.

See also https://medium.com/@henrebotha/how-to-write-an-asynchronous-zsh-prompt-b53e81720d32 which describes an async approach that updates shell variables, rather than memoizing function calls.

dimo414 commented 4 years ago

Nothing particular stood out to me that merited addressing in bash-cache.