Giter Club home page Giter Club logo

Comments (9)

Jouramie avatar Jouramie commented on May 24, 2024

I have the same issue, it started just after updating omz. Running zsh -df as suggested in the issue you linked does stop the ←[?1h from appearing on my side. However, I doubt zsh-autosuggestions is the issue, since disabling it does not solve anything.

I only see the issue in the integrated terminal of PyCharm and VS Code, when launching Git Bash setup with ZSH and OMZ. Git Bash opened as standalone does not have the issue. Running Windows 11.

from ohmyzsh.

carlosala avatar carlosala commented on May 24, 2024

If you follow the steps mentioned here #12328 (comment), does it fix the issues for you?

from ohmyzsh.

edmundito avatar edmundito commented on May 24, 2024

If you follow the steps mentioned here #12328 (comment), does it fix the issues for you?

@carlosala It does not.

Running zsh -df as suggested in the issue you linked does stop the ←[?1h from appearing on my side. However, I doubt zsh-autosuggestions is the issue, since disabling it does not solve anything.

@Jouramie running zsh without the rcs is fine.

I found a workaround:

  1. Comment out source ./...ohmzsh.sh script in .zshrc
  2. Open new termina
  3. Remove the comment and re-run source ./.zshrc

The prompt now works with omz correctly and does not show the issue. 🤔

from ohmyzsh.

carlosala avatar carlosala commented on May 24, 2024

You shouldn't source zshrc, in order to re-run a shell you can use exec zsh or omz update. @mcornella do you know why it could appear?

from ohmyzsh.

mcornella avatar mcornella commented on May 24, 2024

If this is fixed by loading OMZ last it must be that some bad setting is getting overriden. Perhaps it might be related to stty settings backed up in check_for_upgrade.sh 1? Try disabling the auto update with

zstyle ':omz:update' mode disabled

to see if that bypasses the issue (which would confirm that 1 is related) and also please post your .zshrc file that reproduces this.

from ohmyzsh.

edmundito avatar edmundito commented on May 24, 2024

@mcornella This did not make any difference.

Here's my .zshrc, nothing too interesting. I was trying to also disable the git autosuggest to see if that was the problem:

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="simple"
plugins=(git)

source $ZSH/oh-my-zsh.sh

unset ZSH_AUTOSUGGEST_USE_ASYNC
zstyle ':omz:alpha:lib:git' async-prompt no
zstyle ':omz:update' mode disabled

from ohmyzsh.

edmundito avatar edmundito commented on May 24, 2024

Hmm, I just found something that may have fixed the issue. I have an a lazy setup because I seldom use Windows and I'm running zsh through Git Bash and followed this setup: https://dominikrys.com/posts/zsh-in-git-bash-on-windows/

I just updated git for Windows and the problem is gone.

from ohmyzsh.

carlosala avatar carlosala commented on May 24, 2024

That makes it a not-our-issue situation! Thanks for the debugging!

from ohmyzsh.

mcornella avatar mcornella commented on May 24, 2024

Thanks for posting the solution Edmundo!

from ohmyzsh.

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.