Created
November 28, 2013 20:42
-
-
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…
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 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