Git Product home page Git Product logo

Comments (3)

Jaykul avatar Jaykul commented on June 12, 2024 1

Yeah. A few people have reported this. I'm seeing it now in the VS Code integrated terminal (but nowhere else). It's due to this bug: PowerShell/PowerShell#1177

The workaround (since that fix is only in PowerShell 6.0 as far as I know) would be to call the API to set the console mode such as posh-git added here https://github.com/dahlbyk/posh-git/blob/24-bit-color/src/ConsoleMode.ps1

But I'm not sure we want everyone to call that, we'll could end up needlessly setting the ConsoleMode or four times just in the prompt function...

from powerline.

keawade avatar keawade commented on June 12, 2024

Okay, I tried just using the PowerShell 6 Alpha 17 (This solved the gibberish issue) but it isn't loading either $env:USERPROFILE/Documents/WindowsPowerShell/Profile.ps1 or $env:USERPROFILE/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 when it starts.

I can't seem to find documentation of any profile location changes either. I was able to get my profile partially working by manually executing the script and verified that this solves the gibberish problem. However, most of my custom stuff isn't working since it isn't being loaded as a profile.

from powerline.

keawade avatar keawade commented on June 12, 2024

I tracked down the new profile location for PowerShell 6. For anyone else attempting this fix, the profile location for your installation is stored in the global variable $PSHOME. This isn't documented explicitly in the Windows installation instructions but is in a note in the Linux installation instructions.

from powerline.

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.