kimsengduong / powershell-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Powershell-Config

Download PowerShell 7

Powershell Download

Run PWSH (PowerShell 7) as Admin

Install Oh My Posh

Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

Clone Config

git clone git@github.com:duongkimseng/powershell-config.git

Copy file "oh-my-posh.geekie.json" to POSH_THEMES_PATH

cp .\powershell-config\oh-my-posh.geekie.json  $env:POSH_THEMES_PATH

Setup Default Profile

notepad $PROFILE.AllUsersAllHosts

Paste this script into the Profile

oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/oh-my-posh.geekie.json" | Invoke-Expression
if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force }
Start-Process powershell -Verb runAs

About


Languages

Language:Shell 100.0%