Skip to content
Browse files

Moving functions to where they belong and adding xunit alias

  • Loading branch information...
1 parent 77c048b commit 258199a3ce1e5b009d2db11c44d8633970249f89 @eddiegroves committed
Showing with 23 additions and 18 deletions.
  1. +3 −0 ps/Set-EnvironmentPath.ps1
  2. +2 −18 ps/Set-SessionAlias.ps1
  3. +18 −0 ps/Set-Utilities.ps1
View
3 ps/Set-EnvironmentPath.ps1
@@ -46,6 +46,9 @@ Join-EnvPaths "${env:ProgramFiles(x86)}\Microsoft Visual Studio 10.0\Common7\IDE
# .NET Framework utils (msbuild)
Join-EnvPaths "$env:SystemRoot\Microsoft.NET\Framework\v4.0.30319\"
+# xunit
+Join-PathToBinDir 'xunit'
+
if ($WhatIf) {
$path
} else {
View
20 ps/Set-SessionAlias.ps1
@@ -1,22 +1,6 @@
# Fix for plain 'vim' not working
Set-Alias vim vim.exe
-
-# IIS Express
-function IISExpress
-{
- param($Path, $WindowStyle = 'Hidden', $Port = 8080)
- Start-Process -FilePath 'C:\Program Files (x86)\IIS Express\iisexpress.exe' -ArgumentList "/path:$Path /port:$Port" -WindowStyle $WindowStyle
-}
-
-function Get-SQLConnectionString
-{
- $server = Read-Host "Enter Server"
- $database = Read-Host "Enter Database"
- $connectionString = "Data Source=$server;Initial Catalog=$database"
-
- Write-Host $connectionString
- Set-Clipboard -Text $connectionString
-}
-
Set-Alias Start-IISExpress IISExpress
+Set-Alias xunit xunit.console.clr4.exe
+Set-Alias xunit.clr2 xunit.console.exe
View
18 ps/Set-Utilities.ps1
@@ -16,3 +16,21 @@ function Join-Paths([array]$paths) {
function Test-ReparsePoint([string]$path) {
return (Get-ReparsePoint $path).Target.Length -gt 0
}
+
+# IIS Express
+function IISExpress
+{
+ param($Path, $WindowStyle = 'Hidden', $Port = 8080)
+ Start-Process -FilePath 'C:\Program Files (x86)\IIS Express\iisexpress.exe' -ArgumentList "/path:$Path /port:$Port" -WindowStyle $WindowStyle
+}
+
+function Get-SQLConnectionString
+{
+ $server = Read-Host "Enter Server"
+ $database = Read-Host "Enter Database"
+ $connectionString = "Data Source=$server;Initial Catalog=$database"
+
+ Write-Host $connectionString
+ Set-Clipboard -Text $connectionString
+}
+

0 comments on commit 258199a

Please sign in to comment.
Something went wrong with that request. Please try again.