-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Consolidate preexec
-related functions; Eliminate vendor/init.d
#2003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a81daa
to
2e50345
Compare
vendor/init.d
vendor/init.d
; consolidate preexec
functions
2e50345
to
991f39a
Compare
vendor/init.d
; consolidate preexec
functionspreexec
-related functions; Eliminate vendor/init.d
991f39a
to
190bd87
Compare
6 tasks
NoahGorny
requested changes
Jan 3, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gaelicWizard, see my comments 😄
6 tasks
Rebased on current master and ready to go! |
4e7a985
to
16e1719
Compare
Rebased on current master and ready to go! |
9a89ae3
to
d68f334
Compare
Rebased on current master and ready to go! |
NoahGorny
approved these changes
Jan 25, 2022
Define the helper functions for `bash-preexec.sh` immediately after importing it, rather than in `lib/theme`. - `__check_precmd_conflict()` and `save_append_prompt_command()` are generally useful and not theme-specific. - Add matching `__check_preexec_conflict()` and `safe_append_preexec()`.
Alsö, use `_bash-it-array-contains-element()`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please see individual commit messages as needed.
Description
The
vendor/init.d
folder had only one file in it,preexec.bash
, and may have been created in a fit of premature optimization. Lose it!Closes #1844.
Motivation and Context
There's useful functions related to preexec that ought to be in the file, and a few more are needed, and none are usable until after it's loaded.
This PR:
preexec.bash
tolib
,bash_it.sh
,lib/theme
tolib/preexec
,How Has This Been Tested?
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.