Skip to content

lzy1960/powershell-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Powershell Config

Introduction

contains a package

And 4 Modules

  • PSColor
  • posh-git
  • git-aliases
  • PSReadLine

Installation

  1. Install Windows Terminal

  2. run the following command

    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
    # install Oh-My-Posh
    winget install JanDeDobbeleer.OhMyPosh -s winget
    # install modules
    Install-Module PSColor
    Install-Module posh-git -Force
    Install-Module git-aliases -Scope CurrentUser -AllowClobber
    Install-Module PSReadLine -Force

Config

  1. Copy Microsoft.PowerShell_profile.ps1 to %UserProfile%\Documents\WindowsPowerShell
  2. Open settings.json of Windows Terminal, replace content of settings.json
    • The font face of config is Sarasa Term SC, you can download from this link or modify it to what you like
  3. Open Windows Terminal, enjoy it ~