Coder Social home page Coder Social logo

Comments (7)

guidovansteen avatar guidovansteen commented on June 11, 2024

I would ask the developers of zcomet.

from zsh-history-substring-search.

Anomalocaridid avatar Anomalocaridid commented on June 11, 2024

I tried directly sourcing this plugin without a plugin manager and I have confirmed that this error still occurs without it. I even moved my .zshenv file and logged in and out for good measure. Apologies for not trying this sooner.

Here is the full output of the error, which I get every time I press enter:

home-pc% (anon):local:1: bad option: -e
[bat error]: invalid digit found in string

If I do not have bat installed, then I instead get this:

home-pc% (anon):local:1: bad option: -e
(anon):1: command not found: bat

I apologize for previously overlooking the second line of the output. I initially assumed it was unrelated because I thought that I did not see it when just zcomet and this plugin was loaded.

from zsh-history-substring-search.

guidovansteen avatar guidovansteen commented on June 11, 2024

Zhss does not use bat. So this issue must be unrelated to it.

from zsh-history-substring-search.

Anomalocaridid avatar Anomalocaridid commented on June 11, 2024

I am aware zhss does not use bat, but this bug only happens if zhss is sourced, even if no other part of my configuration is sourced. So I am not sure what else could cause it. Did you at least try to replicate the issue? I use the Sway edition of EndeavourOS if that's important. Please let me know if there is any other information I should provide or anything else I should try to rule zhss out.

from zsh-history-substring-search.

guidovansteen avatar guidovansteen commented on June 11, 2024

Is it possible that you (or some shell script) aliased cat to bat. You might check this by running alias cat. If this yields any output you might run unalias cat and check if that helps resolve your problem.

from zsh-history-substring-search.

guidovansteen avatar guidovansteen commented on June 11, 2024

I googled your error and found this: DanielFGray/fzf-scripts#15. Just a suggestion, in case you have installed fzf: You might have to add --ansi to the environment variable FZF_DEFAULT_OPTS (like export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS -- ansi")

from zsh-history-substring-search.

Anomalocaridid avatar Anomalocaridid commented on June 11, 2024

Apparently, something changed and I am no longer able to replicate my issue on zsh with no .zshrc. So it looks like you are most likely right that zhss is not the cause of my problem. Nonetheless, thank you for your help and I apologize for wasting your time.

Also it does not appear cat being aliased or fzf being passed a given flag affects my problem, but thank you for the suggestions anyways.

Edit: It looks like it was caused by making -h a global alias. I feel very silly now. Although I am not sure how it still affected me when I did not have my config loaded. I suppose I accidentally loaded part of it or something.

from zsh-history-substring-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.