Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# Mendel's PowerShell profile
# https://gist.github.com/mendel129/33bc020d25efd813950eabc56be373a9
set-alias firefox "C:\Program Files\Mozilla Firefox\firefox.exe"
set-alias npp "C:\Program Files (x86)\Notepad++\notepad++.exe"
function update-mendelprofile()
{
$profilefile = invoke-webrequest https://gist.githubusercontent.com/mendel129/33bc020d25efd813950eabc56be373a9/raw/38363c5ccb1b835b853906d067f3bf80079e0675/Microsoft.PowerShell_profile.ps1
$profilefile.content | out-file $profile -Append
. $profile
}
function reload-mendelprofile()
{
. $profile
}
function get-ipaddress
{
Get-NetIPAddress | ?{($_.interfacealias -notlike "*loopback*") -and ($_.interfacealias -notlike "*vmware*") -and ($_.interfacealias -notlike "*loopback*") -and ($_.interfacealias -notlike "*bluetooth*") -and ($_.interfacealias -notlike "*isatap*")} | ft
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment