A Practical Windows Terminal Setup with Git Bash and Automatic Pane Layout

Published: (December 20, 2025 at 12:42 AM EST)
2 min read
Source: Dev.to

Source: Dev.to

Overview

When I start my workday, I prefer my development environment to be ready immediately. This guide shows a simple and consistent setup using Windows Terminal and Git Bash, configured to open five panes automatically on startup.

Prerequisites

  • Windows Terminal
  • Git for Windows (provides Git Bash)

Install the tools

winget install Microsoft.WindowsTerminal
winget install Git.Git

After installing Git, restart Windows Terminal once to avoid potential PATH‑related issues.

Configure Git Bash as a Windows Terminal profile

  1. Open Windows Terminal.
  2. Press Ctrl + , to open Settings.
  3. Select Add a new profile → Empty profile.
  4. Fill in the fields:
SettingValue
NameGit Bash
Command lineC:\Program Files\Git\bin\bash.exe --login -i
  1. Go to Startup and set Default profile to Git Bash.
  2. Save the settings.

Now Windows Terminal launches Git Bash by default.

Create a shortcut with a predefined pane layout

The shortcut will:

  • Launch Windows Terminal
  • Use Git Bash in all panes
  • Split the window into five panes
  • Start in a specified directory

Replace your-username with your Windows user name.

wt -p "Git Bash" -d "C:\Users\your-username\Desktop" ; \
split-pane -V -p "Git Bash" -d "C:\Users\your-username\Desktop" ; \
move-focus Left ; \
split-pane -H -p "Git Bash" -d "C:\Users\your-username\Desktop" ; \
move-focus Right ; \
split-pane -H -p "Git Bash" -d "C:\Users\your-username\Desktop" ; \
split-pane -H -p "Git Bash" -d "C:\Users\your-username\Desktop"
  1. Create a new desktop shortcut.
  2. Set the shortcut’s target to the command above (you can place it in a .bat file and point the shortcut to that file).
  3. Name the shortcut something simple, such as Dev Terminal.

Add the shortcut to the Windows startup folder

  1. Press Win + R.
  2. Type shell:startup and press Enter.
  3. Paste the shortcut into the opened folder.

With this configuration, the terminal opens automatically with the desired pane layout each time Windows starts.

Back to Blog

Related posts

Read more »

Microsoft Agent Framework

Article URL: https://learn.microsoft.com/en-us/agent-framework/overview/agent-framework-overview Comments URL: https://news.ycombinator.com/item?id=46377537 Poi...