From 5944518e6e9634667d3294076a80ab756cdcc86b Mon Sep 17 00:00:00 2001 From: David Adam Date: Wed, 12 Mar 2025 14:36:40 +0800 Subject: [PATCH] docs/fish_title: add example on disabling title changing Work on #11241. (cherry picked from commit 3c8e058b75208abe08a6766acc3e476dadcaf9de) --- doc_src/cmds/fish_title.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc_src/cmds/fish_title.rst b/doc_src/cmds/fish_title.rst index d286d1445..35f63cb7e 100644 --- a/doc_src/cmds/fish_title.rst +++ b/doc_src/cmds/fish_title.rst @@ -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