-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigure-Terminal.ps1
More file actions
29 lines (22 loc) · 886 Bytes
/
Configure-Terminal.ps1
File metadata and controls
29 lines (22 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<#
Script Name: Configure-Terminal.ps1
Author: Dark-Coffee
Version: 0.2.0
Updated: 2020-02-10
Url: https://github.com/dark-coffee/Configure-Terminal
#>
<#
.Description
Configures powershell terminal using custom modules from github.
#>
$ModuleLocation = "$ENV:UserProfile\Documents\WindowsPowershell\Modules\dark-coffee"
$ManifestURL = "https://raw.githubusercontent.com/dark-coffee/Configure-Terminal/master/manifest.txt"
$ManifestDestination = "$ModuleLocation\manifest.txt"
if(!(Test-Path $ModuleLocation)){ New-Item -Path $ModuleLocation -ItemType Directory -Force }
Start-BitsTransfer -Source $ManifestURL -Destination $ManifestDestination
$Manifest = Get-Content $ManifestDestination
foreach($Url in $Manifest){
$Filename = $Url -replace ".*/*/"
Start-BitsTransfer -Source $Url -Destination "$ModuleLocation\$Filename"
}
Import-Module dark-coffee