FISH_DARCS_PROMPT(1)
π NAME π
okay so this is the fish_darcs_prompt(1) page from the fish-shell manual, bestie β and fish_darcs_prompt is the function that outputs Darcs information for use in a prompt. β¨
πΈ SYNOPSIS πΈ
function fish_prompt
printf '%s' $PWD (fish_darcs_prompt) ' $ '
end
π¦ DESCRIPTION π¦
The fish_darcs_prompt function displays information about the current Darcs repository, if any. π«Ά
Darcs (https://darcs.net/) must be installed. no cap.
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, defaultgreenβ the prompt label color π$fish_color_darcs_rebasing, defaultyellowβ 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 <>, which will call all supported version control prompt functions, including Git, Mercurial, & Darcs.
π EXAMPLE π
A simple prompt that displays darcs info:
function fish_prompt
...
printf '%s %s$' $PWD (fish_darcs_prompt)
end
π Copyright π
Copyright: fish-shell developers.
π thatβs the whole page, bestie β fish-shell 4.9, dated Sep 08, 2026, mwah π
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms