Skip to content

planetsaint/PowerShell-Customization

Repository files navigation

PowerShell-Customization

Windows PowerShell setup and customization for coding environment.

Snippets included below.

Requirements

  1. Windows terminal
    • Download from windows store.
  2. PowerShell 7:

Installation and Environment Setup

  1. Install Scoop package manager:
iwr -useb get.scoop | iex
  1. Install curl, sudo, (any packages needed for your native development):
 scoop install curl sudo jg nvm
  1. Install git:
 winget install -e --id Git.Git
  1. Install neovim:
 scoop install neovim
  1. Make .config Folder for powershell enviroment profile path:
mkdir C:\User\'username'\.config\powershell
  1. Clone repository to powershell config folder:
git clone https://github.com/planetsaint/PowerShell-Customization.git C:\Users\'username'\.config\powershell\
  1. Copy files to powershell config folder:
cd PowerShell-Customization && cp * <C:\User\'username'\.config\powershell>
  1. Add user profile to powershell folder:
nvim $PROFILE.CurrentUserCurrentHost
  1. Install Oh-My-Posh:
Install-Module posh-git -Scope CurrentUser -Force
Install-Module oh-my-posh -Scope CurrentUser -Force
  1. Add path (In nvim window):
. $env:USERPROFILE\.config\powershell.ps1
  1. Install Terminal Icons:
Install-Module -Name Terminal-Icons -Repository PSGallery -Force
  1. Install PsReadline:
Install-Module -Name PsReadline -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
  1. Install Fuzzy Finder:
Install-Module -Name PsFzf -Scope CurrentUser -Force

Fininshing Touches

  1. Install Nerd Font included in Root directory 'CascadiaCode.Nerd.Font.Complete.ttf'.
  2. Select said font in windows terminal settings.
  3. Open windows terminal JSON themes, paste contents of 'Settings.JSON' in file and save.

Snipets

Listing files: prompt1

Vim Environment prompt2-vim

Fuzzy File Finder prompt3-fzf

Reverse command histroy using Fzf prompt4-fzfhistory

Scoop list prompt3-scoop

Custom written fucntion prompt4-which

About

Windows PowerShell setup and customization for coding environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published