Useful functions and configurations that I use with PowerShell on both Windows and Linux.
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
profile.ps1

README.md

powershell-profile

Useful functions, configurations and aliases that I use with PowerShell on both Windows and Linux.

This was inspired by mikemaccana/powershell-profile.

Installation

To install this profile, just drop it in your default PowerShell config directory:

$profileFolder = split-path $profile;

if (-not (Test-Path $profile)) {
    New-Item -ItemType directory -Path $profileFolder -ErrorAction ignore;
}

# This will overwite whatever profile is there already:
cp ./profile.ps1 $profile;

# Load the profile
. $profile;

Alternatively, leave your current profile intact and load this one in addition to it:

# Inside your current powershell profile
. path/to/profile.ps1