Last active
November 29, 2016 21:29
-
-
Save timsneath/dd792aeb92f94c502a4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### PowerShell personal template profile - Microsoft.PowerShell_profile.ps1 | |
### Version 1.1 - Tim Sneath <[email protected]> | |
### | |
### 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