Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1678

Windows Terminal duplicate tab/pane with current directory

$
0
0
If you run TCC in Windows Terminal and use duplicate tab (Ctrl-Shift-d) or duplicate pane (Alt-Shift-d) you can get the new tab/pane to have the same working directory by prefixing your PROMPT with

Code:
$e]9;9;"$P"$e\

That sequence is commonly called OSC9;9. OSC means OperatingSystemCommand. ESC] (OSC) is its initiator and ESC\ (ST) is its terminator. I believe OSC9;9 comes from ConEmu. The sequence simply tells the terminal what your CWD is.

There is a Microsoft article...

Read more

Viewing all articles
Browse latest Browse all 1678

Trending Articles