Skip to content

Instantly share code, notes, and snippets.

@Kevnz
Created November 28, 2013 20:42
Show Gist options
  • Save Kevnz/7697866 to your computer and use it in GitHub Desktop.
Save Kevnz/7697866 to your computer and use it in GitHub Desktop.
Powershell functions to be used with ConEmu. The tab function opens a new tab at the current location. Pane opens up another console window in the same tab taking up half the screen. Finally dual-panes calls the pane function twice so you have three command prompts in the window, the first taking 50% of window, then the other two take up 25% eac…
function tab
{
$path = Get-Location
$end = "-new_console:d:" + $path.Path
& "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" $end
}
function pane
{
$path = Get-Location
$end = "-new_console:s:d:" + $path.Path
& "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" $end
}
function dual-panes
{
pane
pane
}
set-alias duo dual-panes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment