Quantcast
Channel: Open A New Tab In ConEmu, in the same Directory (git bash) - Super User
Viewing all articles
Browse latest Browse all 2

Open A New Tab In ConEmu, in the same Directory (git bash)

$
0
0

I want to assign a keyboard short cut within ConEmu that will open a new tab, in the same directory as the current tab is within.

So something like:

-new_console:d:[<pwd>]%ProgramFiles(x86)%\Git\bin\sh.exe" --login -i

where [<pwd>] runs pwd or grabs the $PWD environment variable. Or any command that would get the current working directory.

--UPDATE---

Currently I have a bash script set up:

winpwda(){    pwd | sed -e 's/\//\\/g ' | sed 's/^.//' | sed 's/^c/C:/g'}nc(){ ConEmu.exe -new_console:d:"$(winpwda)""%ProgramFiles(x86)%\Git\bin\sh.exe"&}

running "nc" will now open a new window with a git bash ConEmu in the current directory. Annoyingly if I use "cmd" instead of "ConEmu.exe" it successfully opens it in a new tab instead of a new window. Also not sure how i can assign a bash argument as a keyboard short cut...


Viewing all articles
Browse latest Browse all 2

Trending Articles