diff options
Diffstat (limited to '')
-rw-r--r-- | src/m_init.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/m_init.c b/src/m_init.c new file mode 100644 index 0000000..c145063 --- /dev/null +++ b/src/m_init.c @@ -0,0 +1,26 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* m_init.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <stdlib.h> + +#include "s_struct.h" +#include "u_vars_next.h" + +void + m_init_custom_vars(t_msh *msh) +{ + u_subst_var_value("$PS1", FT_DEFAULT_PS_ONE, msh); + u_subst_var_value("$PS2", FT_DEFAULT_PS_TWO, msh); + u_subst_var_value("$PS3", FT_DEFAULT_PS_THR, msh); + u_subst_var_value("$PS4", FT_DEFAULT_PS_FOU, msh); + u_subst_var_value("$HISTFILE", FT_DEFAULT_HISTFILE, msh); +} |