Comments (7)
I always get at launch of my terminal: Skipping PowerShell update check due to GitHub.com not responding within 1 second.
from website.
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.
@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.
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.
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.
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.
Thank you @SMJ804 your solution worked for me
from website.
Related Issues (20)
- universal-android-debloat/ HOT 5
- drivers-in-windows/ HOT 1
- windows-24h2/ HOT 1
- glazewm-tiling-window-management/ HOT 3
- vpn-tier-list-2024/ HOT 9
- Doesn't run HOT 1
- bazzite-linux/ HOT 4
- is-windows-bad/ HOT 1
- improve-youtube/ HOT 1
- windows-utility-improved/ HOT 20
- secure-linux/ HOT 1
- hastebin/ HOT 1
- ubuntu-decline/ HOT 1
- mybash/ HOT 5
- kernel-panic-mac-osx/
- vim-the-ultimate-editor/ HOT 1
- my-problems-with-linux/ HOT 3
- lunduke/ HOT 1
- Windows Defender shows positive for Windows Toolbox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.