mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Shell: Add unalias builtin
Add shell unalias builtin to remove aliases
This commit is contained in:
parent
5140994c69
commit
72e661b542
Notes:
sideshowbarker
2024-07-18 09:08:45 +09:00
Author: https://github.com/SeekingBlues 🔰
Commit: 72e661b542
Pull-request: https://github.com/SerenityOS/serenity/pull/8694
Reviewed-by: https://github.com/alimpfard
3 changed files with 57 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, the SerenityOS developers.
|
||||
* Copyright (c) 2020-2021, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -30,6 +30,7 @@
|
|||
__ENUMERATE_SHELL_BUILTIN(exit) \
|
||||
__ENUMERATE_SHELL_BUILTIN(export) \
|
||||
__ENUMERATE_SHELL_BUILTIN(glob) \
|
||||
__ENUMERATE_SHELL_BUILTIN(unalias) \
|
||||
__ENUMERATE_SHELL_BUILTIN(unset) \
|
||||
__ENUMERATE_SHELL_BUILTIN(history) \
|
||||
__ENUMERATE_SHELL_BUILTIN(umask) \
|
||||
|
@ -287,6 +288,7 @@ private:
|
|||
Optional<int> resolve_job_spec(const String&);
|
||||
void cache_path();
|
||||
void add_entry_to_cache(const String&);
|
||||
void remove_entry_from_cache(const String&);
|
||||
void stop_all_jobs();
|
||||
const Job* m_current_job { nullptr };
|
||||
LocalFrame* find_frame_containing_local_variable(const String& name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue