Skip to content

Instantly share code, notes, and snippets.

@hyeomans
Created September 12, 2013 14:48
Show Gist options
  • Save hyeomans/6538725 to your computer and use it in GitHub Desktop.
Save hyeomans/6538725 to your computer and use it in GitHub Desktop.
My PS profile
# Executables
function subl { &"${Env:ProgramFiles}\Sublime Text 2\sublime_text.exe" $args }
function visual { &"${Env:ProgramFiles}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" $args }
#Directories
function open-table { Set-Location 'C:\Users\Hector\Documents\Visual Studio 2012\Projects\OpenTable' }
#Files
function hosts { subl C:\Windows\System32\drivers\etc\hosts }
#Git
function gst { git status }
function git_show_orig {
git status -su | grep -e"\.orig$" | cut -f2 -d" "
}
function git_clean_orig {
git_show_orig | xargs rm
}
#Adding ssh-agent
$env:path += ";" + (Get-Item "Env:ProgramFiles(x86)").Value + "\Git\bin"
# Load posh-git example profile
. 'C:\Users\Hector\Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment