Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. $ScriptPath = Split-Path -parent $PSCommandPath
  2. . "$ScriptPath\Get-ChildItem-Color\Get-ChildItem-Color.ps1"
  3.  
  4. Set-Alias l Get-ChildItem-Color -option AllScope
  5. Set-Alias ls Get-ChildItem-Format-Wide -option AllScope
  6.  
  7. function Get-ChildItem-Force { l -Force }
  8. set-alias la Get-ChildItem-Force -option AllScope
  9.  
  10. # Load posh-git example profile
  11. . 'C:\Program Files\WindowsPowerShell\Modules\posh-git\0.6.1.20160330\profile.example.ps1'
  12.  
  13. # Load posh-svn example profile
  14. . 'C:\Users\A501205\Documents\WindowsPowerShell\Modules\Posh-GitHub\Posh-GitHub-Profile.ps1'
  15.  
  16. Import-Module PSReadLine
  17.  
  18. Set-PSReadLineOption -HistoryNoDuplicates
  19. Set-PSReadLineOption -HistorySearchCursorMovesToEnd
  20. Set-PSReadLineOption -HistorySaveStyle SaveIncrementally
  21. Set-PSReadLineOption -MaximumHistoryCount 4000
  22. # history substring search
  23. Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
  24. Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
  25.  
  26. # Tab completion
  27. Set-PSReadlineKeyHandler -Chord 'Shift+Tab' -Function Complete
  28. Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
  29.  
  30. function GitHub{
  31. Set-Location -Path "D:\Github"
  32. }
  33.  
  34. function Angular2 {
  35. Set-Location -Path "D:\Visual Studio Code\Angular2"
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement