> For the complete documentation index, see [llms.txt](/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Tabs

Organize your window into multiple terminal sessions with customizable tabs, complete with titles and ANSI colors.

Note

New Tabs will default to the active Tabs’ current [Working Directory](/terminal/more-features/working-directory/) and the actual color values will be automatically derived from your Warp [Theme](/terminal/appearance/themes/).

## How to use Tabs

-   [macOS](#tab-panel-809)
-   [Windows](#tab-panel-810)
-   [Linux](#tab-panel-811)

-   Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/).
-   Open a new Tab with `CMD-T` or by clicking on the `+` in the top bar.
-   Close the current Tab with `CMD-W` or by clicking on the `X` on hover over a Tab.
-   Reopen closed tabs with `SHIFT-CMD-T`.
-   Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab.
-   Activate the Previous / Next Tab with `SHIFT-CMD-{` / `SHIFT-CMD-}` or by clicking a Tab.
-   Activate the first through eighth Tabs with `CMD-1` thru `CMD-8`.
-   Switch to the last Tab with `CMD-9`.
-   Double-click a Tab to rename it.
-   Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals).

-   Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/).
-   Open a new Tab with `CTRL-SHIFT-T` or by clicking on the `+` in the top bar.
-   Close the current Tab with `CTRL-SHIFT-W` or by clicking on the `x` on hover over a Tab.
-   Reopen closed tabs with `CTRL-ALT-T`.
-   Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab.
-   Activate the Previous / Next Tab with `CTRL-PGUP` / `CTRL-PGDN` or by clicking a Tab.
-   Activate the first through eighth Tabs with `CTRL-1` thru `CTRL-8`.
-   Switch to the last Tab with `CTRL-9`.
-   Double-click a Tab to rename it.
-   Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals).

-   Right-click on the new Tab button `+` to make a new tab, restore closed tab, or run a saved [Launch Configuration](/terminal/sessions/launch-configurations/).
-   Open a new Tab with `CTRL-SHIFT-T` or by clicking on the `+` in the top bar.
-   Close the current Tab with `CTRL-SHIFT-W` or by clicking on the `x` on hover over a Tab.
-   Reopen closed tabs with `CTRL-ALT-T`.
-   Move a Tab to the Left / Right with `CTRL-SHIFT-LEFT` / `CTRL-SHIFT-RIGHT` or by clicking and dragging a Tab.
-   Activate the Previous / Next Tab with `CTRL-PGUP` / `CTRL-PGDN` or by clicking a Tab.
-   Activate the first through eighth Tabs with `CTRL-1` thru `CTRL-8`.
-   Switch to the last Tab with `CTRL-9`.
-   Double-click a Tab to rename it.
-   Right-clicking on a Tab reveals more options you can explore within the [Command Palette](/terminal/command-palette/) or [Keyboard Shortcuts](/getting-started/keyboard-shortcuts/#fundamentals).

Tip

**Terminal Tip**  
Using your `.zshrc` or `.bashrc` files on macOS or Linux, you can set a new Tab name:

```
# Set name, where MyTabName would be whatever you want to see in the Tab ( either a fixed string, $PWD, or something else )function set_name () {  export WARP_DISABLE_AUTO_TITLE=true  echo -ne "\033]0;MyTabName\007"}# Add the function to the environment variable in either Zsh or Bashif [ -n "$ZSH_VERSION" ]; then  preexec_functions+=(set_name)elif [ -n "$BASH_VERSION" ]; then  PROMPT_COMMAND='set_name'fi
```

Learn more about Tab names [here](https://learn.microsoft.com/en-us/windows/terminal/tutorials/tab-title#set-the-shells-title).

### Tab Restoration

Tab Restoration enables you to reopen recently closed tabs for up to 60 seconds. Configure this feature in **Settings** > **Features** > **Session** > **Enable reopening of closed sessions**

### CTRL-TAB Behavior

`CTRL-TAB` shortcut defaults to activate the previous / next Tab. You can configure the shortcut to cycle the most recent session, including any [Split Panes](/terminal/windows/split-panes/), in **Settings** > **Features** > **Keys** > **Ctrl-Tab behavior**

### Tabs Behavior

Please see our [Appearance > Tabs Behavior](/terminal/appearance/tabs-behavior/) docs for more Tab related settings.

### How Tabs work
