From 0daee33ad6e581aa60f6ad6b78c5f69bdcaf45cb Mon Sep 17 00:00:00 2001
From: ridiculousfish
Date: Sun, 3 Aug 2014 00:00:26 -0700
Subject: [PATCH] Document new fish_title behavior per #334
---
doc_src/index.hdr.in | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in
index b33ec50f6..758a597b8 100644
--- a/doc_src/index.hdr.in
+++ b/doc_src/index.hdr.in
@@ -1326,16 +1326,29 @@ executed or put into the foreground and the output is used as a
titlebar message. The $_ environment variable will always contain the
name of the job to be put into the foreground (Or 'fish' if control is
returning to the shell) when the \c fish_prompt function is called.
+The first argument to fish_title will contain the most
+recently executed foreground command as a string, starting with fish 2.2.
-Example:
+Examples:
The default \c fish title is
function fish_title
- echo $_ ' '
- pwd
+ echo $_ ' '
+ pwd
+end
+
+
+
+
+To show the last command in the title:
+
+
+
+function fish_title
+ echo $argv[1]
end