Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
Functions
history_command.h File Reference

File containing the functions to manage (load & save, etc.) the history of commands entered by the user to a file. More...

#include <stdio.h>
#include <stdlib.h>
#include "typedef.h"
#include <string.h>
#include "constants.h"
Include dependency graph for history_command.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_command_history ()
 Initialize the global command history.
 
void add_to_command_history (const char *command)
 Add a command to the global command history. More...
 
void save_command_history_to_file ()
 Save the command history to the history file.
 
void load_command_history_from_file ()
 Load the command history from the history file.
 

Detailed Description

File containing the functions to manage (load & save, etc.) the history of commands entered by the user to a file.

Author
Julien & Franck
Date
24 Dec 2023

Function Documentation

◆ add_to_command_history()

void add_to_command_history ( const char *  command)

Add a command to the global command history.

Parameters
commandThe command to be added