Last active
June 2, 2022 15:19
-
-
Save YahuiWong/9e609596888d98e8541d30e5ba15a1a5 to your computer and use it in GitHub Desktop.
oh-my-posh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scoop install oh-my-posh | |
# 1. 安装 PSReadline 包,该插件可以让命令行很好用,类似 zsh | |
Install-Module -Name PSReadLine -Scope CurrentUser | |
# 2. 安装 posh-git 包,让你的 git 更好用 | |
Install-Module posh-git -Scope CurrentUser | |
# # 3. 安装 oh-my-posh 包,让你的命令行更酷炫、优雅 | |
# Install-Module oh-my-posh -Scope CurrentUser | |
if (!(Test-Path $env:POSH_THEMES_PATH\jandedobbeleer.omp.json)) { | |
Invoke-WebRequest -useb https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/jandedobbeleer.omp.json|` | |
New-Item $env:POSH_THEMES_PATH\jandedobbeleer.omp.json -Force | |
} | |
Invoke-WebRequest -useb https://gist.github.com/YahuiWong/735b5d6be4ebf2a6b5e84b539066e288/raw/c0a1b998ca0576940551bddaa00f6620f0753ce7/Microsoft.PowerShell_profile.ps1 |` | |
New-Item $PROFILE -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment