Skip to content
Merged
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
21 changes: 21 additions & 0 deletions src/cli/CLIcore/CLIcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ errno_t runCLI(int argc, char *argv[], char *promptstring)
// Load persistent command history
cli_history_load();

// Initialize structured history log
cli_history_log_init();

// Load persistent bookmarks
cli_bookmark_load();

Expand Down Expand Up @@ -1348,6 +1351,24 @@ void runCLI_cmd_init()
"fhist",
"cli_fhist()");

RegisterCLIcommand(
"ghistory",
__FILE__,
cli_ghistory,
"global history (all sessions)",
"[N] [-s <session_id>]",
"ghistory 50",
"cli_ghistory()");

RegisterCLIcommand(
"lhistory",
__FILE__,
cli_lhistory,
"local history (current session)",
"[N]",
"lhistory",
"cli_lhistory()");

RegisterCLIcommand(
"fparam",
__FILE__,
Expand Down
7 changes: 7 additions & 0 deletions src/cli/CLIcore/CLIcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,13 @@ typedef struct
int CMDexecuted;
errno_t CMDerrstatus;

// SESSION IDENTITY
// =================================================

char session_id[64];
char session_tty[64];
struct timespec session_start;

// MODULES
// =================================================

Expand Down
Loading
Loading