diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 19:27:57 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 19:27:57 +0200 |
commit | c4617f7a2499bd81c49963291688977e3153d00f (patch) | |
tree | 75eb5c32f3d0b136f2f823217e0ee177b2fc2c94 /src/m_init.c | |
parent | HUGE pain in the ass finally over (diff) | |
download | 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.gz 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.bz2 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.xz 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.tar.zst 42-minishell-c4617f7a2499bd81c49963291688977e3153d00f.zip |
prompt rice
Diffstat (limited to 'src/m_init.c')
-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); +} |