GithubHelp home page GithubHelp logo

Comments (10)

eggbean avatar eggbean commented on June 18, 2024 1

You probably have something in your .zshenv, .zprofile or .zlogin or possibly .zshrc which does a ls -A for some reason.

You could just alias ls to this script and you can just carry on using ls options.

from exa.

rayros25 avatar rayros25 commented on June 18, 2024 1

Okay I found what was causing the issue for me. By moving the alias up through my zshrc as suggested, I found that the line that was causing the issue for me as source /opt/homebrew/opt/chruby/share/chruby/chruby.sh. I put this in my zshrc because I tried working with Jekyll one time. So for me, turns out it wasn't the plugin manager at all, it was a shell script I had forgotten about.

from exa.

porfyr avatar porfyr commented on June 18, 2024

I made a little fork which supports -A argument, would you like to consider it pls >_<

from exa.

erichhaemmerle avatar erichhaemmerle commented on June 18, 2024

I looked through all my files and I do not see anywhere where "ls -A" is being used. I think -A might be the default when using ls so when doing the alias, exa doesn't know how to handle it? I'm not entirely sure. I can try to alias to that script, but I'm not sure how to do that. I clicked that link, but it looks like it had instructions if using bash and I am using zsh.

from exa.

rayros25 avatar rayros25 commented on June 18, 2024

I'm having the exact same issue, exa v0.10.1, zsh 5.9 (x86_64-apple-darwin22.0) using Zap, M1 Macbook Air with macOS Ventura. Same error pops up when I open my terminal (kitty) and whenever I source my .zshrc file. I've also looked through my files and couldn't find any ls -A.

EDIT: I've cleared up the issue by moving the alias ls='exa ...' to the very bottom of my .zshrc. That makes the error message disappear when opening the terminal or sourceing a file. Hopefully that works for you too. (But we still don't know the cause of this problem.)

from exa.

eggbean avatar eggbean commented on June 18, 2024

@rayros25 You could try moving that alias line up file file 25% at a time until the error comes back, to find exactly which line that is causing it.

from exa.

erichhaemmerle avatar erichhaemmerle commented on June 18, 2024

So for Oh My ZSH, I have an aliases.zsh file. I still got the error whether the alias was at the top of my aliases file or at the bottom, BUT I removed it from the aliases.zsh file all together and moved it to the bottom of my .zshrc file and now the error went away for me too.

from exa.

eggbean avatar eggbean commented on June 18, 2024

This is why I really don't like omz. There's loads of stuff in it and you don't know what. I think it's a lot better to just add the stuff that you specifically want and use a plugin manager. I use antidote, but there are more popular alternatives.

from exa.

erichhaemmerle avatar erichhaemmerle commented on June 18, 2024

That's funny. I just looked and mine is the exact same issue for the exact same reason. chruby.sh

from exa.

ariasuni avatar ariasuni commented on June 18, 2024

Ah yeah, I guess if you alias ls to something then run a script with some shells, it can go wrong. Closing because it has nothing to do with exa, then.

from exa.

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.