mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
Shell: Refresh PATH cache after running shellrc files
This fixes the highlight of runnable commands, whenever PATH variable is changed in one of the shellrc files.
This commit is contained in:
parent
e292a038b7
commit
5506932788
Notes:
sideshowbarker
2024-07-17 14:30:09 +09:00
Author: https://github.com/hjalves 🔰 Commit: https://github.com/SerenityOS/serenity/commit/5506932788 Pull-request: https://github.com/SerenityOS/serenity/pull/13488 Issue: https://github.com/SerenityOS/serenity/issues/13485
|
@ -241,6 +241,7 @@ public:
|
|||
|
||||
String get_history_path();
|
||||
void print_path(StringView path);
|
||||
void cache_path();
|
||||
|
||||
bool read_single_line();
|
||||
|
||||
|
@ -343,7 +344,6 @@ private:
|
|||
void bring_cursor_to_beginning_of_a_line() const;
|
||||
|
||||
Optional<int> resolve_job_spec(StringView);
|
||||
void cache_path();
|
||||
void add_entry_to_cache(String const&);
|
||||
void remove_entry_from_cache(StringView);
|
||||
void stop_all_jobs();
|
||||
|
|
|
@ -225,6 +225,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
};
|
||||
run_rc_file(Shell::Shell::global_init_file_path);
|
||||
run_rc_file(Shell::Shell::local_init_file_path);
|
||||
shell->cache_path();
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue