docs/fish_title: add example on disabling title changing

Work on #11241.

(cherry picked from commit 3c8e058b75)
This commit is contained in:
David Adam
2025-03-12 14:36:40 +08:00
parent 19502ff9e7
commit 5944518e6e

View File

@@ -26,15 +26,12 @@ The first argument to fish_title contains the most recently executed foreground
This requires that your terminal supports programmable titles and the feature is turned on.
To disable setting the title, use an empty function (see below).
Example
-------
A simple title:
::
A simple title::
function fish_title
set -q argv[1]; or set argv fish
@@ -43,3 +40,7 @@ A simple title:
echo (fish_prompt_pwd_dir_length=1 prompt_pwd): $argv;
end
Do not change the title::
function fish_title
end