diff --git a/include/constants.h b/include/constants.h index 2f4d63f..0bfd128 100644 --- a/include/constants.h +++ b/include/constants.h @@ -1,7 +1,7 @@ #ifndef CONSTANTS_H_ #define CONSTANTS_H_ -#define HISTFILE ".90s_history" // history file name +#define HISTFILE "90s_history" // history file name #define TOK_BUFSIZE 64 // buffer size of each token #define RL_BUFSIZE 1024 // size of each command #define TOK_DELIM " \t\r\n\a" // delimiter for token diff --git a/src/90s.c b/src/90s.c index 2a13c3d..c3add9d 100644 --- a/src/90s.c +++ b/src/90s.c @@ -124,15 +124,15 @@ void highlight(char *buffer, char **paths) { if (valid) { if (command_without_arg != NULL) { buffer += cmd_len; - printf("\x1b[38;2;137;180;250m%s\x1b[0m\x1b[38;2;255;255;255m%s\x1b[0m", command_without_arg, buffer); // print green as valid command, but only color the command, not the arguments + printf("\x1b[38;2;166;227;161m%s\x1b[0m\x1b[38;2;255;255;255m%s\x1b[0m", command_without_arg, buffer); // print green as valid command, but only color the command, not the arguments buffer -= cmd_len; } else { - printf("\x1b[38;2;137;180;250m%s\x1b[0m", buffer); // print green as valid command + printf("\x1b[38;2;166;227;161m%s\x1b[0m", buffer); // print green as valid command } } else { if (command_without_arg != NULL) { buffer += cmd_len; - printf("\x1b[38;2;243;139;168m%s\x1b[0m\x1b[38;2;255;255;255m%s\x1b[0m", command_without_arg, buffer); // print green as valid command, but only color the command, not the arguments + printf("\x1b[38;2;243;139;168m%s\x1b[0m\x1b[38;2;255;255;255m%s\x1b[0m", command_without_arg, buffer); // print red as invalid command, but only color the command, not the arguments buffer -= cmd_len; } else { printf("\x1b[38;2;243;139;168m%s\x1b[0m", buffer); // print red as invalid command