Skip to content

Instantly share code, notes, and snippets.

@timsneath
Last active November 29, 2016 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timsneath/dd792aeb92f94c502a4b to your computer and use it in GitHub Desktop.
Save timsneath/dd792aeb92f94c502a4b to your computer and use it in GitHub Desktop.
### PowerShell personal template profile - Microsoft.PowerShell_profile.ps1
### Version 1.1 - Tim Sneath <tim@sneath.org>
###
### This file should be stored in $PROFILE.CurrentUserCurrentHost
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserCurrentHost -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
# iPlayer
if (Test-Path 'C:\Program Files (x86)\get_iplayer')
{
function Get-iPlayer
{
Push-Location .
Set-Location 'C:\Program Files (x86)\get_iplayer'
.\perl.exe .\get_iplayer.pl $args
Pop-Location
}
}
# Docker
if (Get-Module -ListAvailable -Name posh-docker)
{
Import-Module posh-docker
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment