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