Shell: Load a different rc file when in POSIX mode

This commit is contained in:
Ali Mohammad Pur 2023-03-20 16:49:10 +03:30 committed by Andreas Kling
commit d997b794fa
Notes: sideshowbarker 2024-07-18 03:35:30 +09:00
3 changed files with 48 additions and 2 deletions

View file

@ -92,6 +92,8 @@ class Shell : public Core::Object {
public:
constexpr static auto local_init_file_path = "~/.shellrc";
constexpr static auto global_init_file_path = "/etc/shellrc";
constexpr static auto local_posix_init_file_path = "~/.posixshrc";
constexpr static auto global_posix_init_file_path = "/etc/posixshrc";
bool should_format_live() const { return m_should_format_live; }
void set_live_formatting(bool value) { m_should_format_live = value; }