FISH\_DARCS\_PROMPT(1) fish-shell FISH\_DARCS\_PROMPT(1)

# [NAME](#NAME)

fish\_darcs\_prompt - output Darcs information for use in a prompt

# [SYNOPSIS](#SYNOPSIS)

```
fish_darcs_prompt
```

```
function fish_prompt


     printf '%s' $PWD (fish_darcs_prompt) ' $ '
end
```

# [DESCRIPTION](#DESCRIPTION)

The **fish\_darcs\_prompt** function displays information about the current Darcs repository, if any.

Darcs &lt;https://darcs.net/&gt; must be installed.

The prompt always shows the VCS name (configurable via **$fish\_prompt\_darcs\_name**, default **darcs**) as there are no branches/channels; it can be unset to remove it entirely. If the repository has unrecorded changes, status counts are shown for each change type:

- **$fish\_color\_darcs\_normal**, default **green** (the prompt label color)
- **$fish\_color\_darcs\_rebasing**, default **yellow** (used when a rebase is in progress)

To match Darcs’s logo green:

```
set fish_color_darcs_normal 72ff01
```

The Darcs status symbols:

- **$fish\_prompt\_darcs\_status\_added**, default **+**
- **$fish\_prompt\_darcs\_status\_modified**, default **\***
- **$fish\_prompt\_darcs\_status\_removed**, default **-**
- **$fish\_prompt\_darcs\_status\_moved**, default **→**
- **$fish\_prompt\_darcs\_status\_untracked**, default **…**
- **$fish\_prompt\_darcs\_status\_conflict**, default **!**

Colors for these symbols can be set with the corresponding variables (**$fish\_color\_darcs\_added** & so on), which are unset by default so the terminal’s foreground color is used.

**$fish\_prompt\_darcs\_status\_order** can be used to change the order the status symbols appear in. It defaults to **added removed modified moved conflict untracked**.

See also fish\_vcs\_prompt &lt;&gt;, which will call all supported version control prompt functions, including Git, Mercurial, & Darcs.

# [EXAMPLE](#EXAMPLE)

A simple prompt that displays darcs info:

```
function fish_prompt


    ...


    printf '%s %s$' $PWD (fish_darcs_prompt)
end
```

# [Copyright](#Copyright)

fish-shell developers

October 15, 2026 4.9

---

Document: fish_darcs_prompt(1) from fish 4.9.3-r3 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
