Skip to content

Instantly share code, notes, and snippets.

@Kyle-Falconer
Created November 27, 2019 23:22
Show Gist options
  • Save Kyle-Falconer/0b0bfb67e491607f7bdbee7d0bf9f641 to your computer and use it in GitHub Desktop.
Save Kyle-Falconer/0b0bfb67e491607f7bdbee7d0bf9f641 to your computer and use it in GitHub Desktop.
Simple Powershell Profile
# C:\Users\username\Documents\WindowsPowershell\Microsoft.PowerShell_profile.ps1
#
# to allow this to run, the ExecutionPolicy needs to be changed. In order run:
# Get-ExecutionPolicy -List
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Get-ExecutionPolicy -List
# creates the *nix `which`-like command
# https://stackoverflow.com/a/65148/940217
New-Alias which get-command
# shortcut to edit this file
# https://docs.microsoft.com/en-us/previous-versions//bb613488(v=vs.85)?redirectedfrom=MSDN#creating-a-profile
function pro { notepad $profile }
# allow the `subl` command to open Sublime Text
Set-Alias subl 'C:\Program Files\Sublime Text 3\subl.exe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment