/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* d_define.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #ifndef D_DEFINE_H #define D_DEFINE_H #include "d_enum.h" /* ** ====== CLASSICS ====== */ #define FT_BUILTINS "echo|cd|pwd|export|unset|env|exit|type" /* ** ====== PSX ====== */ #define FT_DEFAULT_PS_ONE "minishell ~> " #define FT_DEFAULT_PS_TWO "> " #define FT_DEFAULT_PS_THR "> " #define FT_DEFAULT_PS_FOU "> " /* ** ====== PSX RICE ====== */ #define FT_PROGNAME "minishell" #define FT_MSH_VERSION "0.1" /* ** ====== OPTIONS ====== */ #define FT_OPT_INTERACT "-i" #define FT_OPT_COMMAND "-c" /* ** ====== VARS ====== */ #define FT_ZER_VAR "$0" #define FT_RET_VAR "$?" #define FT_PID_VAR "$$" /* ** ====== FAIL MSG ====== */ #define FT_FAIL_COMMAND_NOT_FOUND "command not found" #define FT_FAIL_NO_OPTIONS "no options required" #define FT_FAIL_TOO_MANY_ARGS "too many arguments" #define FT_FAIL_HOME_NOT_SET "HOME not set" /* ** ====== FILES ====== */ #define FT_MINISHELLRC ".minishellrc" #define FT_DEFAULT_HISTFILE ".minishell_history" #endif