9

I want to run two commands at the same time in Git Bash.

  • webpack -w
  • node server.js

So i want to split my terminal into two or multiple tabs.

How to split the terminal into multiple views ?

Tim Martin
  • 3,618
  • 6
  • 32
  • 43
Anyname Donotcare
  • 11,113
  • 66
  • 219
  • 392
  • Opening another terminal window/tab is not a valid option for you? – S. D. Jul 03 '17 at 20:04
  • 1
    check out ConEmu. you may need admin rights to install. https://stackoverflow.com/questions/20202269/set-up-git-bash-to-work-with-tabs-on-windows – user2954463 Aug 09 '17 at 16:46
  • Possible duplicate of [Set up git bash to work with tabs on windows](https://stackoverflow.com/questions/20202269/set-up-git-bash-to-work-with-tabs-on-windows) – Yoav Feuerstein Jul 24 '18 at 08:53

5 Answers5

10

Your requirements are:

  • Use git bash
  • Split into 2 or more tabs

You can archive this the following way.

  1. Download Visual Studio Code
  2. Change your integrated terminal to git bash. "terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe"
  3. Open a new terminal by clicking on Terminal > new Terminal in VS Code top navigation bar.
  4. Split your terminal
Matthis Kohli
  • 1,877
  • 1
  • 21
  • 23
6

Git Bash, won't allow users to split the screen in to two as the features don't exist. The only way is to use alternative or use ConEmu to configure, my personal preference would be Cmder (console emulator) and other options would be Moba Xterm. Cmder is open source and completely free. This would be much easier than configuring ConEmu.

ordago
  • 377
  • 3
  • 20
Balaji.J.B
  • 618
  • 7
  • 14
3

To duplicate a GIT bash in windows press Alt + F2.

This opens a new terminal in the same path as the previous.

Oscar
  • 41
  • 1
3

You can achieve this in Windows Terminal:

https://learn.microsoft.com/en-us/windows/terminal

Windows Terminal Preview can be configured to save your panes layout on close:

https://www.microsoft.com/en-au/p/windows-terminal-preview/9n8g5rfz9xk3

See this post for how to add a Git Bash profile automatically:

https://stackoverflow.com/a/69093260

Other features include:

  • Set starting directory for Git Bash profile and Defaults
  • Customise pane theme, colors, fonts, background images (including animated gifs), transparency, cursor shape, 'retro terminal effects' etc
user1063287
  • 10,265
  • 25
  • 122
  • 218
2

Launch two instances of GIT Bash and press win + to automatically divide the screen into two halves and select desired programs.

mwfearnley
  • 3,303
  • 2
  • 34
  • 35
ImGroot
  • 796
  • 1
  • 6
  • 17