/PowerShell-Settings

My Personal PowerShell Settings

Primary LanguagePowerShell

PowerShell-Settings

Improve PowerShell because it's ugly. powershellscreenshot

Getting Started

Requirements

For Windows 10: virtualenvwrapper-win

For Linux: virtualenvwrapper

If you are not working with python or not using virtualenvs you can remove the workon function from Microsoft.PowerShell_profile.ps1

Installing

Set your PowerShell execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Install Chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Install Chocolatey packages
choco install git.install -y
Install PowerShell modules
Install-PackageProvider NuGet -MinimumVersion '2.8.5.201' -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module Get-ChildItemColor -Scope CurrentUser

Or for updating

Update-Module powershellget
Update-Module posh-git
Update-Module oh-my-posh
Update-Module Get-ChildItemColor

Git Clone

Git clone this project and copy the contents to ...\Documents\WindowsPowerShell.

Install DejaVu Font

Custom DejaVu Font

Setup Enviroment Variables

Add the following to user's PATH in environment variables

...\Documents\WindowsPowerShell\Tools\ColorTool

Wherever your Documents folder is located. e.g.

C:\Users\BGBRWR\Documents\WindowsPowerShell\Tools\ColorTool

Optional

Add the following to User Variables in environment variables

WORKON_HOME   C:\Repositories\Envs

Or wherever you want virtualenvwrapper to put your virtualenvs. By default, this is %USERPROFILE%\Envs.

Settings

In PowerShell

Change font to DejaVuSansMono.

You can change colors with ColorTool.

colortool -b 'seti'

Extra themes are already included. You can review them here.

In VSCode

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.fontFamily": "DejaVuSansMono",
"terminal.integrated.fontSize": 16

Authors

Acknowledgments