Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/alice/alice/commands/show.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ class show_command : public command
std::string filename;
#ifdef __APPLE__
std::string program = "open {}";
#elif _WIN32
std::string program = "start {}";
#else
std::string program = "xdg-open {}";
#endif
Expand Down
11 changes: 11 additions & 0 deletions lib/alice/alice/readline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ class readline_wrapper
}

private:
static constexpr const char* HISTORY = "./.history";
readline_wrapper()
{
read_history(HISTORY);
}

~readline_wrapper()
{
write_history(HISTORY);
}

static char** readline_completion_s( const char* text, int start, int end )
{
(void)end;
Expand Down
2 changes: 1 addition & 1 deletion lib/alice/alice/store_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class command;
static constexpr const char* option = "graph";
static constexpr const char* mnemonic = "g";
static constexpr const char* name = "graph";
static constexpr const char* name = "graphs";
static constexpr const char* plural_name = "graphs";
};

}
Expand Down