2013-04-14 05:17:19 +08:00
|
|
|
\section fish_right_prompt fish_right_prompt - define the appearance of the right-side command line prompt
|
2012-11-08 11:59:20 +08:00
|
|
|
|
|
|
|
\subsection fish_right_prompt-synopsis Synopsis
|
2014-08-01 20:25:41 +08:00
|
|
|
\fish{synopsis}
|
2014-08-01 10:37:32 +08:00
|
|
|
function fish_right_prompt
|
2012-11-08 11:59:20 +08:00
|
|
|
...
|
2014-08-01 10:37:32 +08:00
|
|
|
end
|
|
|
|
\endfish
|
2012-11-08 11:59:20 +08:00
|
|
|
|
|
|
|
\subsection fish_right_prompt-description Description
|
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
`fish_right_prompt` is similar to `fish_prompt`, except that it appears on the right side of the terminal window.
|
2012-11-08 11:59:20 +08:00
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
Multiple lines are not supported in `fish_right_prompt`.
|
2012-11-08 11:59:20 +08:00
|
|
|
|
2014-08-19 20:41:23 +08:00
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
\subsection fish_right_prompt-example Example
|
2012-11-08 11:59:20 +08:00
|
|
|
|
|
|
|
A simple right prompt:
|
2014-08-19 20:41:23 +08:00
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
\fish
|
2012-11-08 11:59:20 +08:00
|
|
|
function fish_right_prompt -d "Write out the right prompt"
|
2016-04-04 20:43:37 +08:00
|
|
|
date '+%m/%d/%y'
|
2012-11-08 11:59:20 +08:00
|
|
|
end
|
2014-08-01 10:37:32 +08:00
|
|
|
\endfish
|
2012-11-08 11:59:20 +08:00
|
|
|
|