Commits

sirchristian  committed 2b13f14

Profile

  • Participants

Comments (0)

Files changed (2)

File Invoke-CmdScript.ps1

Binary file added.
+# Set path to allow current directory
+$env:Path = ".;" + $env:Path
+
+# Add window name function
+function Set-WindowName ($name) { (Get-Host).UI.RawUI.WindowTitle = $name }
+Set-Alias swn Set-WindowName
+
+function Hg-Shelve () { 
+    hg diff | Out-File -Encoding UTF8 c:\shelf.diff
+    hg revert --all
+}
+function Hg-UnShelve () { 
+    hg import c:\shelf.diff --no-commit
+}
+
+# Change the color of the error text
+(Get-Host).PrivateData.ErrorBackgroundColor = "Red"
+(Get-Host).PrivateData.ErrorForegroundColor = "White"
+
+set-alias vi vim
+
+# Import VS tools
+pushd "$Env:VS110COMNTOOLS"
+. $Home\Documents\WindowsPowerShell\invoke-cmdscript.ps1 ".\vsvars32.bat"
+popd
+
+# go home
+cd $home