Skip to content

Instantly share code, notes, and snippets.

@Ostlind
Created September 29, 2016 06:32
Show Gist options
  • Save Ostlind/92085875911235da220d899f554b08c9 to your computer and use it in GitHub Desktop.
Save Ostlind/92085875911235da220d899f554b08c9 to your computer and use it in GitHub Desktop.
$ScriptPath = Split-Path -parent $PSCommandPath
. "$ScriptPath\Get-ChildItem-Color\Get-ChildItem-Color.ps1"
Set-Alias l Get-ChildItem-Color -option AllScope
Set-Alias ls Get-ChildItem-Format-Wide -option AllScope
function Get-ChildItem-Force { l -Force }
set-alias la Get-ChildItem-Force -option AllScope
# Load posh-git example profile
. 'C:\Program Files\WindowsPowerShell\Modules\posh-git\0.6.1.20160330\profile.example.ps1'
# Load posh-svn example profile
. 'C:\Users\A501205\Documents\WindowsPowerShell\Modules\Posh-GitHub\Posh-GitHub-Profile.ps1'
Import-Module PSReadLine
Set-PSReadLineOption -HistoryNoDuplicates
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
Set-PSReadLineOption -HistorySaveStyle SaveIncrementally
Set-PSReadLineOption -MaximumHistoryCount 4000
# history substring search
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
# Tab completion
Set-PSReadlineKeyHandler -Chord 'Shift+Tab' -Function Complete
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
function GitHub{
Set-Location -Path "D:\Github"
}
function Angular2 {
Set-Location -Path "D:\Visual Studio Code\Angular2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment