2018-12-17 01:39:33 +00:00
|
|
|
fish_right_prompt - define the appearance of the right-side command line prompt
|
|
|
|
==========================================
|
|
|
|
|
2018-12-18 01:58:24 +00:00
|
|
|
Synopsis
|
|
|
|
--------
|
2018-12-16 21:08:41 +00:00
|
|
|
|
|
|
|
function fish_right_prompt
|
|
|
|
...
|
|
|
|
end
|
2018-12-18 01:58:24 +00:00
|
|
|
|
2018-12-16 21:08:41 +00:00
|
|
|
|
2018-12-19 02:44:30 +00:00
|
|
|
Description
|
|
|
|
------------
|
2018-12-16 21:08:41 +00:00
|
|
|
|
|
|
|
`fish_right_prompt` is similar to `fish_prompt`, except that it appears on the right side of the terminal window.
|
|
|
|
|
|
|
|
Multiple lines are not supported in `fish_right_prompt`.
|
|
|
|
|
|
|
|
|
2018-12-19 02:44:30 +00:00
|
|
|
Example
|
|
|
|
------------
|
2018-12-16 21:08:41 +00:00
|
|
|
|
|
|
|
A simple right prompt:
|
|
|
|
|
2018-12-19 03:14:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
function fish_right_prompt -d "Write out the right prompt"
|
|
|
|
date '+%m/%d/%y'
|
|
|
|
end
|
|
|
|
|
2018-12-16 21:08:41 +00:00
|
|
|
|