diff --git a/lib/alice/alice/commands/show.hpp b/lib/alice/alice/commands/show.hpp index dcb4723b..51d57be5 100644 --- a/lib/alice/alice/commands/show.hpp +++ b/lib/alice/alice/commands/show.hpp @@ -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 diff --git a/lib/alice/alice/readline.hpp b/lib/alice/alice/readline.hpp index 3fc8cf57..18f0b6f8 100644 --- a/lib/alice/alice/readline.hpp +++ b/lib/alice/alice/readline.hpp @@ -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; diff --git a/lib/alice/alice/store_api.hpp b/lib/alice/alice/store_api.hpp index 466580e4..7cd8b31e 100644 --- a/lib/alice/alice/store_api.hpp +++ b/lib/alice/alice/store_api.hpp @@ -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"; }; }