Created
January 27, 2012 16:04
-
-
Save cajones/1689496 to your computer and use it in GitHub Desktop.
function to open one or more files in a text editor (SublimeText2 in this case)
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
function Execute-Each($list) { | |
$list |% { & $exe $_ } | |
} | |
function Edit-UsingSublimeText2($path) { | |
$exe = "C:\Program Files\Sublime Text 2\sublime_text.exe" | |
$files = @() | |
$files += $path | |
$files += $input | |
(Execute-Each $files) | |
} | |
Set-Alias -Name edt -Value Edit-UsingSublimeText2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment