mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
More to exclude
This commit is contained in:
parent
e82a08dc37
commit
124e114a97
1 changed files with 1 additions and 1 deletions
2
zshrc
2
zshrc
|
|
@ -61,7 +61,7 @@ export SAVEHIST=200000
|
|||
# This avoids problems that crop up when I try to squish the cwd into the history entry.
|
||||
function zshaddhistory() {
|
||||
COMMAND_STR=${1%%$'\n'}
|
||||
[[ ( -z $COMMAND_STR ) || ( $COMMAND_STR == history ) || \
|
||||
[[ ( -z $COMMAND_STR ) || ( $COMMAND_STR =~ hist(ory)? ) || \
|
||||
( $COMMAND_STR =~ ^l(s\|l\|a)?$ ) || \
|
||||
( $COMMAND_STR =~ ^(d\|gd\|git\ diff\|glp\|gg)$ ) \
|
||||
]] && return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue