Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement