Minishell
|
#include "../../include/main.h"
#include "../../include/custom_commands.h"
#include <sys/stat.h>
#include "../../include/utils.h"
Functions | |
char * | get_path (data_t *data, history_t *history) |
void | add_history (data_t *data) |
char * | read_history_utils (history_t *history, char *path) |
void | print_with_number (data_t *data, int times, char *path) |
void | print_history (data_t *data, run_command_t *cmd) |
void add_history | ( | data_t * | data | ) |
add the command to the history file
data |
get the path of the history file
data | |
history |
void print_history | ( | data_t * | data, |
run_command_t * | cmd ) |
main funcion to print the history file
data | |
cmd |
void print_with_number | ( | data_t * | data, |
int | times, | ||
char * | path ) |
print the history file with a especified number
times | number of times especified by the user to print the history |
path | path of the history file in yout pc |
data |
char * read_history_utils | ( | history_t * | history, |
char * | path ) |
get all the information of the history file into a string
history | |
path |