Giter Club home page Giter Club logo

Comments (6)

madonuko avatar madonuko commented on May 25, 2024 1

I see, kinda dug into the code, adding single quotes around them doesn't even help at all, pretty surprising.

Anyway, thanks for looking into this.

from nvm.

ljharb avatar ljharb commented on May 25, 2024

nvm doesn't run any pager at all. however, i see you've aliased grep to egrep --color=auto', and rm to rm --interactive=never, and mkdir to nocorrect mkdir - so i suspect that perhaps there's some shell aliases you've set up that are causing issues.

from nvm.

madonuko avatar madonuko commented on May 25, 2024

I thought nocorrect mkdir is a thing that zsh aliases to automatically? I've also checked my config files and grep most ~/.zshrc returns nothing…

from nvm.

ljharb avatar ljharb commented on May 25, 2024

Maybe oh-my-zsh? zsh doesn't alias anything automatically.

The lines that are erroring about most are in the nvm_wrap_with_color_code function - so i suspect it's related to colorized output somehow.

Are you using global zsh aliases perhaps? Those are hugely problematic and might not be something nvm can work around.

from nvm.

madonuko avatar madonuko commented on May 25, 2024

I guess it's an issue with OMZ:

/home/mado/.oh-my-zsh/plugins/common-aliases/common-aliases.plugin.zsh
7:alias la='ls -lAFh'   #long list,show almost all,show type,human readable
30:alias -g M="| most"

this is the output from rg most ~/.oh-my-zsh (truncated)

and in the file:

  25   │ # Command line head / tail shortcuts
  26   │ alias -g H='| head'
  27   │ alias -g T='| tail'
  28   │ alias -g G='| grep'
  29   │ alias -g L="| less"
  30   │ alias -g M="| most"
  31   │ alias -g LL="2>&1 | less"
  32   │ alias -g CA="2>&1 | cat -A"
  33   │ alias -g NE="2> /dev/null"
  34   │ alias -g NUL="> /dev/null 2>&1"
  35   │ alias -g P="2>&1| pygmentize -l pytb"

that seems to be the issue (maybe something using M)

from nvm.

ljharb avatar ljharb commented on May 25, 2024

yup, that's exactly the issue. all of those global zsh aliases are impossible to avoid.

I'd suggest disabling omz entirely anyways, zsh folks tend to discourage it.

from nvm.

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.