ChrisTitusTech/powershell-profile
GitHub: ChrisTitusTech/powershell-profile
Stars: 956 | Forks: 463
# 🎨 PowerShell Profile (Pretty PowerShell)
A stylish and functional PowerShell profile that looks and feels almost as good as a Linux terminal.
## ⚡ One Line Install (Elevated PowerShell Recommended)
Execute the following command in an elevated PowerShell window to install the PowerShell profile:
irm "https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1" | iex
## 🛠️ Fix the Missing Font
After running the script, you'll have two options for installing a font patched to support icons in PowerShell:
### 1) You will find a downloaded `cove.zip` file in the folder you executed the script from. Follow these steps to install the patched `Caskaydia Cove` nerd font family:
1. Extract the `cove.zip` file.
2. Locate and install the nerd fonts.
### 2) With `oh-my-posh` (loaded automatically through the PowerShell profile script hosted on this repo):
1. Run the command `oh-my-posh font install`
2. A list of Nerd Fonts will appear like so:
PS> oh-my-posh font install
Select font
> 0xProto
3270
Agave
AnonymousPro
Arimo
AurulentSansMono
BigBlueTerminal
BitstreamVeraSansMono
•••••••••
3. With the up/down arrow keys, select the font you would like to install and press ENTER
4. DONE!
## Customize this profile
**Do not make any changes to the `Microsoft.PowerShell_profile.ps1` file**, since it's hashed and automatically overwritten by any commits to this repository.
After the profile is installed and active, run the `Edit-Profile` function to create a separate profile file [`profile.ps1`] for your current user. Add any custom code, and/or override VARIABLES/FUNCTIONS in `Microsoft.PowerShell_profile.ps1` by adding any of the following Variable or Function names:
THE FOLLOWING VARIABLES RESPECT _Override:
$EDITOR_Override
$debug_Override
$repo_root_Override [To point to a fork, for example]
$timeFilePath_Override
$updateInterval_Override
THE FOLLOWING FUNCTIONS RESPECT _Override: _(do not call the original function from your override function, or you'll create an infinite loop)_
Debug-Message_Override
Update-Profile_Override
Update-PowerShell_Override
Clear-Cache_Override
Get-Theme_Override
WinUtilDev_Override [To call a fork, for example]
标签:Caskaydia Cove, IPv6, Libemu, Linux风格, Nerd Fonts, Oh-My-Posh, PowerShell, PowerShell脚本, Profile配置, SEO关键词, Windows终端, 一键安装, 二进制发布, 命令行美化, 字体安装, 安全可观测性, 开发环境, 开源工具, 技术博客, 版本控制, 系统工具, 终端美化, 编辑器配置, 自定义配置, 调试配置