Commit 669b1812 authored by Dustin Howett's avatar Dustin Howett

Remove some commented code

parent 69eea7ae
......@@ -35,14 +35,8 @@ If($null -eq (Get-Module PromptEd)) {
}
}
# Split path and write \ in a gray
#$pwd.Path.Split("\") | foreach {
# Write-Host $_ -nonewline -foregroundcolor Yellow
# Write-Host "\" -nonewline -foregroundcolor Gray
#}
Write-Host $pwd.ProviderPath.Replace($env:USERPROFILE, "~") -nonewline -foregroundcolor Magenta
# Admin ?
if((
New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
......@@ -59,10 +53,6 @@ If($null -eq (Get-Module PromptEd)) {
} Else {
$script:Hostname = [System.Environment]::MachineName
Function pe_Hostname {
#$name = $env:COMPUTERNAME
#If($null -eq $name) {
#$name = $env:HOSTNAME
#}
Write-Host "(" -NoNewLine -ForegroundColor (Get-PromptColor Brackets)
Write-Host $Script:HOSTNAME.ToLower() -NoNewLine -ForegroundColor (Get-PromptColor Hostname)
Write-Host ")" -NoNewLine -ForegroundColor (Get-PromptColor Brackets)
......@@ -359,7 +349,6 @@ Function Take-TemporaryDirectory {
New-Item -ItemType:Directory -Path:"$TAKE" -ErrorAction:Stop > $Null
Push-Location -Path:$TAKE -StackName:"TakeStack" > $Null
$Host.EnterNestedPrompt()
#powershell.exe -NoProfile -NoLogo -Command "Set-Location `"$TAKE`"; powershell.exe -NoLogo"
Pop-Location -StackName:"TakeStack" > $Null
If($null -Eq (Get-Item (Join-Path -Path:$TAKE -ChildPath:".keep") -ErrorAction:Ignore)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment