Terminal
The Terminal tab opens a shell in the root folder of your project. It works for all projects.
Sessions
A project can have more than one terminal. To open one more terminal, click New terminal (the + button) at the right of the terminal tabs. To open a shell on your server, use the Remote SSH tab.
- When a project has more than one terminal, each terminal tab has a close button. You can also middle-click a tab to close it.
- A dot on a tab shows that the terminal has new output that you did not see.
The Terminal tab keeps the last terminal that you selected for each project. The terminals and their output stay when you go to a different tab or project.
After you restart DevWorkspace Pro, each terminal shows its saved text. A new shell starts in the last folder that you used. The old commands do not run again. See Resume Sessions After Restart.
Open a file from the terminal
Hold ⌘ (Ctrl on Windows and Linux) and click a file or folder path in the terminal. The file opens in a viewer above the terminal. This works in the Terminal tab and in the headless terminal window. While you hold the key, the path under the mouse is underlined. A normal click and text selection work as usual.
The terminal picks up these paths:
- Full paths, for example
/Users/you/shop/app/Kernel.php, and paths that start with~/,./or../ - Short paths that have a slash or a file extension, for example
src/app.tsorREADME.md - Paths with a line and column, for example
app.ts:42,app.ts:42:7orapp.ts(42,7) - Paths in quotes, backticks or brackets, and
file://links
A short path opens from the folder the terminal is in now. So if you used cd to move to another folder, the app looks there first. If the file is not there, it then looks in the folder where the terminal started. On Windows and with WSL, the app only looks in the folder where the terminal started.
It also works on the Commands Log page, but only for full paths.
You can also open any Markdown file in the viewer without a terminal. Drop the file on the app window, or right-click it in Finder, File Explorer or your file manager and choose Open With > DevWorkspace Pro. DevWorkspace Pro does not become the default app for Markdown files.
What you see depends on the file:
- Markdown files show formatted, with their images. Click a link to another Markdown file to open it in the viewer, and click the back arrow to return.
- Code and text files open in a read-only editor. If the path has a line number, the viewer jumps to that line and highlights it. A JSON file opened without a line number shows with clean indentation.
- Images fit the window. Click 1:1 to see the real size, and Fit to go back. The image dimensions and the file size show below the image.
- PDF files open in a PDF viewer.
- Folders show their first 200 items, folders first. Click an item to open it.
- Other files, and text files larger than 5 MB, show the file type, size and date, with Open in Default App and Reveal in Finder.
The top of the viewer shows the file name and its path in the project, with these buttons:
- Copy path copies the full path.
- Reveal in Finder (Reveal in Explorer on Windows, Reveal in File Manager on Linux) shows the file in its folder.
- Open in IDE opens the file with the IDE Command from Configuration.
- Open in Files tab opens the file in the Files tab of its project, at the same line. You see this button only for files inside a project.
Press Esc to close the viewer. The keyboard focus goes back to the terminal.
If the app cannot open the path, a notification tells you why:
- File not found shows the path you clicked and the folders the app checked.
- Cannot open gives the reason, for example when you do not have permission to read the file.
- No file path here shows when you hold the key and click text that is not a path.
The viewer does not work in the Remote SSH tab, because those paths are on your server.
Rename or delete a project
When you rename or delete a project, the app closes all terminal sessions of the project, including the extra terminal sessions and the Remote SSH session. After a rename, a new session starts when you open the Terminal tab of the renamed project.
Open a Shell in the Container
To open a shell in the web container of a DDEV project, run ddev ssh in the Terminal tab. Type exit to go back to the shell in the project folder.
Headless Terminal
DevWorkspace Pro runs some commands in a headless terminal, for example post-creation tasks, add-on changes, Git operations and Send to AI sessions. The headless terminal runs in the background. The status bar at the bottom of the window shows the running commands and their status:
- When a project has more than one running command, the status bar shows one chip for the project, with the number of commands. Click the chip to open the headless terminal of the project, on the tab you used last. Each command of the project is a tab in it.
- Commands that run outside a project, for example a session you start with New AI session outside a project, are in one Global group. The status bar shows this group first. When the commands in Global run in more than one folder, click the group to see a list of them, then click a command to open it.
- When there are many groups, or the window is too narrow to show them all, the status bar puts the others in a list behind a button with their number, for example +5. Click it to see them.
The project page also shows a N running button, for example 2 running, when the project has running commands. Click the button to open the headless terminal of the project, on the tab you used last.
The headless terminal comes to the front when:
- A command needs a password or other input.
- A command fails.
If another headless terminal window is open at that time, the new one takes its place.
To open a headless terminal yourself, click its minimize icon in the status bar. You can then use it like the Terminal tab.
Window controls
The top of the window shows:
- A status dot: green while the command runs, red when it failed, amber for other states (for example, when it waits for your input).
- The project name and a short description of the command, for example
Issue #42: Fix login redirect. - The project folder. Click it to copy the path.
- Go to and the project name, when you are not on the page of that project. Click it to open the project.
- Minimize, and Close when the command failed or can be closed.
When a project has more than one headless command, the window shows a tab for each command. If there are more tabs than fit, the tab bar scrolls to a new tab when it opens. Hover over a tab to see its full name and command. A tab has a close button when its command failed or can be closed.
To rename a command, double-click its name. This works for the active tab, and for the name in the window header when the project has only one command. When the tab bar has focus, you can also press F2. Press Enter to save or Esc to cancel. If you clear the name, the tab shows the command again. Names stay until the command closes.
When one command of a project uses a large window, the window stays large for all tabs of that project.
| Action | macOS | Windows / Linux |
|---|---|---|
| Minimize | Cmd+Shift+M | Ctrl+Shift+M |
| Close | Cmd+Shift+W | Ctrl+Shift+W |
| Previous / next command tab | Cmd+Option+← / → | Ctrl+Page Up / Page Down |
Click outside the window to minimize it. Esc also minimizes it when the cursor is not in the terminal. Inside the terminal, Esc goes to the command. When you minimize the window, the command continues to run, and no other headless terminal window opens in its place.
Switch project with the window open
The project switcher (⌘+K on macOS, Ctrl+K on Windows and Linux), the recent projects list (Ctrl+Tab) and AI session search (⌘+Shift+J or Ctrl+Shift+J) open above the headless terminal window. Notifications also show above it. When you click a notification, the window stays open.
When notifications are over a dialog, they fold into a small pill after you see them. Hover over the pill or click it to open the notifications.
When you select a different project:
- If that project has headless commands, the window opens the tab you used last in that project. If you closed that tab, or you have not used one there yet, it opens the latest command of the project.
- If that project has no headless commands, the current window stays open and a warning shows.
When you click a command in a running commands list, the window opens that command.
DevWorkspace Pro remembers the last tab of each project until you restart the app.
The terminal in the window then has the keyboard focus. If you close the switcher with Esc and do not select a project, the focus goes back to the terminal.
Shell history
DevWorkspace Pro gives each command to your shell as an argument (for example, zsh -i -c "<command>"). It does not type the command at a prompt. For this reason, the command does not go into your shell history. This applies to zsh, bash, fish, nushell, PowerShell and cmd.
The first line of the headless terminal shows the command in a dim color. zsh, bash, fish and PowerShell load their usual configuration first, so your aliases work. All shells get the PATH of your login shell.