-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* `HISTORY_SUBSTRING_SEARCH_PREFIX` is a global variable that defines how the command history will be searched for your query. If set to a non-empty value, only history prefixed by your query will be matched. For example, if this variable is empty, `ls` will match `ls -l` and `echo ls`; if it is non-empty, `ls` will only match `ls -l`. Co-authored-by: Xue Qianming <[email protected]>
- Loading branch information
1 parent
0f80b8e
commit 4f2f17c
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Shouldn't it be
if [[ ... ]]
instead oftest
here, since that is what's already being used throughout the existing code, plus Zsh has[[ exp ]]
as one of its provided complex commands. This is not code to run in any shell, this is specifically for Zsh.Also, the existing code seems to prefer
over
if condition && list
, which is not the same thing.