Skip to content

Commit

Permalink
Removing the window resizing and updating ps title
Browse files Browse the repository at this point in the history
  • Loading branch information
sayedihashimi committed Jul 12, 2014
1 parent 331ce72 commit d0a1653
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions PS.ps1
@@ -1,6 +1,7 @@
$pshost = get-host
$pswindow = $pshost.ui.rawui

<#
$newsize = $pswindow.buffersize
$newsize.height = 3000
$newsize.width = 120
Expand All @@ -11,10 +12,12 @@ $newsize.height = 50
$newsize.width = 120
$pswindow.windowsize = $newsize
$pswindow.windowtitle = "Windows Powershell"
$pswindow.foregroundcolor = "DarkYellow"
$pswindow.backgroundcolor = "DarkMagenta"

cls
#>

$pswindow.windowtitle = ('ASP.NET vNext: {0} {1}' -f $args[0], $args[1])
$pswindow.foregroundcolor = 'DarkYellow'
$pswindow.backgroundcolor = 'DarkMagenta'

$run = $args[0] + " " + $args[1]
Invoke-Expression $run

0 comments on commit d0a1653

Please sign in to comment.