aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-09 22:54:08 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-09 22:54:08 -0700
commit6f0b00f9831d96dce6ea940ab93696c61bb6f01e (patch)
tree741365ce4c157a44c258d31a550d9105820f374f /history.h
parent69ace201f8532d1062f90edf97c6e8fb4620095e (diff)
Make fish import .bash_history if regular history is not found
Diffstat (limited to 'history.h')
-rw-r--r--history.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/history.h b/history.h
index b25d3217..856c008c 100644
--- a/history.h
+++ b/history.h
@@ -146,6 +146,9 @@ public:
/** Returns history with the given name, creating it if necessary */
static history_t & history_with_name(const wcstring &name);
+ /** Determines whether the history is empty. Unfortunately this cannot be const, since it may require populating the history. */
+ bool is_empty(void);
+
/** Add a new history item to the end */
void add(const wcstring &str, const path_list_t &valid_paths = path_list_t());