Created
December 7, 2011 14:44
-
-
Save benjaminplee/1443056 to your computer and use it in GitHub Desktop.
powershell profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# goes in $HOME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
function rmrf { | |
rm -Recurse -Force $Args | |
} | |
function clone_vimfiles { | |
Set-Location $HOME | |
rmrf _gvimrc | |
rmrf _vimrc | |
rmrf _viminfo | |
rmrf vimfiles | |
git clone https://github.com/asynchrony/vimfiles-erlang-windows.git vimfiles | |
cd vimfiles | |
Start-Process install.cmd -Wait | |
} | |
Set-Alias gitk gitk.cmd | |
function prompt | |
{ | |
Write-Host("" + $(get-location) + ">") -nonewline -ForegroundColor Yellow | |
return " " | |
} | |
function envs {Get-ChildItem Env:} | |
# run cmd until it fails | |
do { cmd } while ($?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment