Skip to content
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

Fail to run after sourcing the script #37

Open
hllau opened this issue Sep 13, 2018 · 1 comment
Open

Fail to run after sourcing the script #37

hllau opened this issue Sep 13, 2018 · 1 comment

Comments

@hllau
Copy link

hllau commented Sep 13, 2018

I received this error message on every command:

zshaddhistory:4: failed to compile regex: empty (sub)expression

@larkery
Copy link
Owner

larkery commented Jan 16, 2019

That's odd - do you have any settings set to do with regex in your zshrc?

Have you changed the value of _BORING_COMMANDS?

You can remove the check for boring commands if you like, just knock out this bit:

    for boring in "${_BORING_COMMANDS[@]}"; do
        if [[ "$cmd" =~ $boring ]]; then
            return 0
        fi
    done

The effect will be that you get calls to ls in your history, which are not great reading.

Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants