2017-05-29 17:42:02 +00:00
|
|
|
#ifndef FISH_FISH_SETTINGS_H
|
|
|
|
#define FISH_FISH_SETTINGS_H
|
|
|
|
|
2017-05-29 14:19:42 +00:00
|
|
|
#include "fish_core.h"
|
|
|
|
|
2017-05-29 17:42:02 +00:00
|
|
|
#define FISH_RC_FILE "/.fishrc"
|
|
|
|
#define FISH_RC_FILE_SIZE 8
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Get settings */
|
2017-05-29 17:42:02 +00:00
|
|
|
Settings * getSettings(); //TESTEDssssss
|
2017-06-19 11:45:06 +00:00
|
|
|
|
|
|
|
/* Free settings */
|
2017-05-29 17:42:02 +00:00
|
|
|
void freeSettings(Settings *settings); //TESTED
|
2017-06-19 11:45:06 +00:00
|
|
|
|
|
|
|
/* Extract a given variable from a given file */
|
2017-05-29 17:42:02 +00:00
|
|
|
char* extractVariable(char* filename, char* var);//TESTED
|
2017-06-19 11:45:06 +00:00
|
|
|
|
|
|
|
/* Correctly print PS1 and PS2 variable */
|
2017-06-12 11:29:19 +00:00
|
|
|
void printPS(char* PS, Settings* s);
|
2017-05-29 17:42:02 +00:00
|
|
|
|
2017-05-29 17:09:19 +00:00
|
|
|
#endif //FISH_FISH_SETTINGS_H
|
|
|
|
|