Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $script_library = "C:\ps_profile_scripts\" # path ending with \
- $env:path += ";C:\Program Files (x86)\Microsoft VS Code"
- $modules = "posh-git","psake","pester"
- # disable terminal bells and beeps
- Set-PSReadlineOption -BellStyle None -MaximumHistoryCount 1000
- # load named modules, if they exist, and show a version table
- foreach ($module in $modules) {
- if (Get-Module -listavailable -name $module) {
- Import-Module $module
- }
- }
- Get-Module $modules | Format-Table name, version
- # dot-source loose scripts (functions and such)
- Get-ChildItem ($script_library + "*.ps1") |
- ForEach-Object { . (Join-Path $script_library $_.Name)}
Add Comment
Please, Sign In to add comment