Skip to content

Instantly share code, notes, and snippets.

@benjaminplee
Created December 7, 2011 14:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminplee/1443056 to your computer and use it in GitHub Desktop.
Save benjaminplee/1443056 to your computer and use it in GitHub Desktop.
powershell profile
# 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