Creating Shortcut Terminal Paths in Windows 11

Abstract: Configure Windows Terminal profiles to automatically launch in specific directories, eliminating manual path navigation.

Created: 2026-09-03 by
You can create shortcut terminal paths in Windows 11 by configuring the settings.json file within Windows Terminal. This approach allows you to define custom profiles that automatically navigate to specific directories upon launch, eliminating the need to manually type long path strings every time you open a command-line interface for a project or directory.

Understanding Windows Terminal Profiles

Windows Terminal manages its configuration through a single JSON file named settings.json. Each entry under the profiles section represents a distinct way to access a shell. While most users rely on standard entries like "Command Prompt" or "PowerShell," creating a custom profile enables you to specify not just which executable to run, but also what initial working directory should be used. This feature is particularly useful for developers who frequently switch between multiple projects located in different drives or deep folder structures. By pre-defining these paths, you ensure consistency and reduce context-switching friction during your workflow.

Locating the Configuration File

To begin editing your terminal settings, first open Windows Terminal. You can do this by searching for "Terminal" in the Start menu or using the keyboard shortcut Ctrl + Shift + M. Once the application is running, locate the dropdown arrow next to the tab name or use the gear icon in the top-right corner of the window. Select the Settings option from the menu. This action will open the settings interface in your default web browser, displaying the raw JSON content. Alternatively, you can directly navigate to the file location in File Explorer. The file is typically stored at %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json. Editing this file directly requires a text editor like Notepad or Visual Studio Code, whereas the UI method provides a more guided experience for beginners.

Creating a Custom Profile Entry

Inside the settings.json file, look for the profiles object, which contains an array of objects under the list key. To add a new shortcut path, insert a new object into this array. You must assign a unique guid to this profile, which acts as its internal identifier. You can generate a GUID using online tools or PowerShell commands if needed. Set the name property to something descriptive, such as "My Project Folder." Crucially, you need to specify the commandline property. This should point to your preferred shell executable, such as C:\Windows\System32\cmd.exe for Command Prompt or windowspowershell.exe for PowerShell. If you are using Git Bash, you might reference git-bash.exe instead.

Defining the Working Directory

The most critical part of this configuration is the startingDirectory field. Add this key-value pair inside your new profile object. Set the value to the absolute path of the directory you want to access immediately. For example, "C:\\Projects\\WebApp". Note that backslashes in JSON strings must be escaped with another backslash, so \\ represents a single forward slash in the actual file system path. After saving the file, return to Windows Terminal and refresh the profile list by clicking the dropdown arrow. Your new profile will appear in the list. When selected, it will launch the specified shell and automatically execute a change directory command to your target folder, effectively giving you instant access to that workspace.

Integrating Environment Variables

For dynamic access, you can combine shortcuts with environment variables. If you have set up custom environment variables in your system, you can reference them in the startingDirectory path. This is helpful if your project folders are stored in user-specific locations that might vary across machines. For instance, using %USERPROFILE%\Documents\Dev ensures the path resolves correctly regardless of the username. This technique complements other terminal configurations, such as those discussed in our guide on using CD commands with custom environment variables, ensuring your terminal setup remains flexible and robust against path changes.

Troubleshooting Common Issues

If your shortcut does not work, verify that the path exists and that you have read permissions for that directory. JSON syntax errors are common; ensure all commas are placed correctly and quotes are balanced. A missing comma after a property value will cause the entire configuration to fail, resulting in Windows Terminal falling back to defaults. Additionally, check that the executable path in commandline is correct. If you recently installed a new shell like WSL or Git Bash, ensure the installation path matches what you entered. Broken shortcuts often result from typos in the guid or incorrect escaping of special characters in the file path. Regularly backing up your settings.json file can prevent loss of these custom configurations during updates.

Frequently Asked Questions

Can I use relative paths in the startingDirectory field?

No, Windows Terminal requires absolute paths for the startingDirectory field. Relative paths are not resolved correctly because the terminal does not know the base context for resolution. Always provide the full path starting from the drive letter, such as C:\Users\Name\Folder, to ensure reliable navigation.

How do I remove a custom terminal profile?

Open settings.json again and locate the profiles.list array. Find the object corresponding to your custom profile and delete the entire block enclosed in curly braces. Ensure you leave a comma after the previous entry if it is not the last one in the array. Save the file and restart the terminal to see the change.

Is it possible to pass arguments to the shell via this method?

Yes, you can include arguments in the commandline string. Append the desired flags or scripts after the executable path, separated by a space. For example, "cmd.exe /k cd C:\Projects" will start Command Prompt and immediately change the directory. This allows for complex initialization routines without needing separate batch files.

Why does my terminal open in the wrong directory?

This usually happens if another rule overrides your profile settings, or if the startingDirectory path contains a typo. Check for conflicting rules in global settings or other profiles. Also, verify that the directory still exists at that location; if the folder was moved or deleted, the terminal may fall back to the user's home directory.

Can I share my custom terminal settings with others?

You can copy the settings.json file to another computer, but you must ensure the paths and executables exist on the target machine. Differences in user names or installation directories may break the shortcuts. It is best to use environment variables or standard installation paths to maximize compatibility across different systems.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More