Giter VIP home page Giter VIP logo

Comments (7)

akvariefisk avatar akvariefisk commented on July 17, 2024

I always get at launch of my terminal: Skipping PowerShell update check due to GitHub.com not responding within 1 second.

from website.

tommyq86 avatar tommyq86 commented on July 17, 2024

Very nice. Would be fine to have a section for custom functions which wouldn't be lost during the update or at least some way to load some custom.ps1 :)

from website.

SMJ804 avatar SMJ804 commented on July 17, 2024

@akvariefisk You must be using powershell 5.1 swithc to powershell 7.4 and it will be fixed. I had the same issue

from website.

nairbd avatar nairbd commented on July 17, 2024

Every time I try to change my oh-my-posh profile, the Update-Profile function overwrites the change and reverts back to the original. Any way to change this?

from website.

SMJ804 avatar SMJ804 commented on July 17, 2024

Okay, so for me the script was saved on C:\Users\[USER NAME]\OneDrive\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 . if you cannot find the powershell script just search it on Everything. There is a line at the bottom that says

## Final Line to set prompt oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/cobalt2.omp.json | Invoke-Expression

change that to your theme, for me changed the word cobalt2 to amro and it worked

After changing

## Final Line to set prompt oh-my-posh init pwsh --config https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/amro.omp.json | Invoke-Expression

Hope this works

from website.

SMJ804 avatar SMJ804 commented on July 17, 2024

UPDATE

The profile updating function in the script resets the changes we made in the script so I again edited it to stop checking for profile updates

** CAUTION :I am not a programmer and I am no expert in this **

What I ended up doing was to put a return statement under Update-Profile function which skips the whole profile update checking. It worked for me and I think it is a solution till Chris comes and fixes this bug.

# Check for Profile Updates
function Update-Profile {
    Write-Host "Skipping Update to Preserve Theme"
    return
    if (-not $global:canConnectToGitHub) {
        Write-Host "Skipping profile update check due to GitHub.com not responding within 1 second." -ForegroundColor Yellow
        return
    }

from website.

nairbd avatar nairbd commented on July 17, 2024

Thank you @SMJ804 your solution worked for me

from website.

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.