2018-12-17 01:39:33 +00:00
|
|
|
fish_right_prompt - define the appearance of the right-side command line prompt
|
2019-01-03 04:10:47 +00:00
|
|
|
===============================================================================
|
2018-12-17 01:39:33 +00:00
|
|
|
|
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
|
2019-01-03 04:10:47 +00:00
|
|
|
-----------
|
2018-12-16 21:08:41 +00:00
|
|
|
|
2018-12-19 20:02:45 +00:00
|
|
|
``fish_right_prompt`` is similar to ``fish_prompt``, except that it appears on the right side of the terminal window.
|
2018-12-16 21:08:41 +00:00
|
|
|
|
2018-12-19 20:02:45 +00:00
|
|
|
Multiple lines are not supported in ``fish_right_prompt``.
|
2018-12-16 21:08:41 +00:00
|
|
|
|
|
|
|
|
2018-12-19 02:44:30 +00:00
|
|
|
Example
|
2019-01-03 04:10:47 +00:00
|
|
|
-------
|
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
|
|
|
|