Skip to content

Commit

Permalink
add conemu create-console and sh alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Glenn committed Feb 12, 2013
1 parent 8f35eb5 commit 0bc4381
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Setup-Utils.psm1
Expand Up @@ -156,10 +156,17 @@ function Get-Environment {
Get-ChildItem Env:
}

function Create-Console($path = $(pwd)) {
$console = Resolve-Path (join-path (join-path "$env:PROGRAMW6432*" "console*") "ConEmu64*");
. $console /config "shell" /dir "$path" /cmd powershell -cur_console:n
}

Set-Alias sh Create-Console

Set-Alias Get-Env Get-Environment
Set-Alias Get-Version $Host.Version
Set-Alias nano "$(Get-Editor)"

Export-ModuleMember `
Get-Editor, Test-Syntax, Reload-Profile, Coalesce-Args, Get-LocalOrParentPath, Debug, Get-ScriptDirectory, Get-Environment, ConvertTo-PlainText, Reload-Module `
-Alias ??, dbg, Get-Env, Get-Version, nano
Get-Editor, Test-Syntax, Reload-Profile, Coalesce-Args, Get-LocalOrParentPath, Debug, Get-ScriptDirectory, Get-Environment, ConvertTo-PlainText, Reload-Module, Create-Console `
-Alias ??, dbg, Get-Env, Get-Version, nano, sh

0 comments on commit 0bc4381

Please sign in to comment.