---
title: "Shell Integration"
description: "Hotkeys and shortcuts for an enhanced Devin CLI experience."
icon: "square-terminal"
---

<Note>Shell integration (Ctrl+G, comment syntax) is available on macOS, Linux, and WSL. Works with Bash, Zsh, and Fish. Windows users can run Devin for Terminal from Git Bash or PowerShell, but shell integration features are not yet supported on Windows.</Note>

With shell integration, you can hit `Ctrl+G` to instantly invoke Devin CLI. Devin also can see your recent shell history, helping it understand what you're trying to do.

## Setup

Shell integration is not included in `devin setup` by default. To set up manually:

```bash
devin shell setup
```

Then restart your terminal or `source ~/.bashrc` (or `~/.zshrc`).

---

## Features

### Ctrl+G Shortcut

Hit `Ctrl+G` anywhere in your shell to invoke Devin with your current command line prefilled as context.

```bash
$ git status   # type this, then hit Ctrl+G instead of Enter
# Devin opens with "git status" + your recent shell history
```

### Comment Syntax (Zsh only)

Start a line with `#`, type a message, and press Enter to pass it to Devin CLI.

```bash
$ # explain what this directory contains
# Devin opens with your comment as the prompt
```

---

## Configuration

In `~/.config/devin/config.json` (`%APPDATA%\devin\config.json` on Windows):

```json
// ~/.config/devin/config.json
// On Windows: %APPDATA%\devin\config.json
{
  "shell": {
    "keybinding_trigger": "C-g",
    "enable_comments": true
  }
}
```

<Note>
On Windows, the user config path is `%APPDATA%\devin\config.json` (typically `C:\Users\<you>\AppData\Roaming\devin\config.json`), not `~/.config/devin/config.json`.
</Note>
