summaryrefslogtreecommitdiff
path: root/src/compgen.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-06-11 10:14:53 +0100
committerPhil Jones <philj56@gmail.com>2022-06-11 10:14:53 +0100
commitc0cd4cdf78886040528b16fad084a14165a16384 (patch)
tree82788f09527c91060cea22246f1af9a2572ce655 /src/compgen.h
parent7c31982244f179cb2f51bb1d81b21ad4efd649ba (diff)
Add compgen caching.
A list of commands is now stored in $XDG_CACHE_HOME/.cache/tofi-compgen, and regenerated as necessary.
Diffstat (limited to 'src/compgen.h')
-rw-r--r--src/compgen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compgen.h b/src/compgen.h
index c79f548..a80c62b 100644
--- a/src/compgen.h
+++ b/src/compgen.h
@@ -5,6 +5,7 @@
#include "string_vec.h"
struct string_vec compgen(void);
+struct string_vec compgen_cached(void);
void compgen_history_sort(struct string_vec *programs, struct history *history);
#endif /* COMPGEN_H */