Pierre, you have my thanks as well!! On Tue, Apr 2, 2019 at 6:00 PM Tom Smyth <tom.sm...@wirelessconnect.eu> wrote:
> Pierre, Henry > thanks for that I have wanted this on my systems for a while > Cheers for asking and answering this one > > > On Tue, 2 Apr 2019 at 22:21, Pierre Emeriaud > <petrus.lt+open...@gmail.com> wrote: > > > > Le mar. 2 avr. 2019 à 23:00, Henry Bonath <he...@thebonaths.com> a > écrit : > > > > > > Hello, > > > Does anyone have any suggestions as to how to add the current rtable > to the > > > $PS1 prompt? > > > > > > I tend to flip back and forth between routing domains and tend to lose > track > > > of which rdomain I am currently using. > > > > > > I've been attempting an approach by trying to run 'ps -aux -o rtable' > > > and using some grep/cut-fu but I am not happy with the results. > > > > > > Perhaps there is something simpler that I am missing? > > > > Yes, `id -R` "Display the routing table of the current process": > > > > PS1="[\u@$\h:\w](rdomain$(id -R))\$ " > > > > > -- > Kindest regards, > Tom Smyth > > The information contained in this E-mail is intended only for the > confidential use of the named recipient. If the reader of this message > is not the intended recipient or the person responsible for > delivering it to the recipient, you are hereby notified that you have > received this communication in error and that any review, > dissemination or copying of this communication is strictly prohibited. > If you have received this in error, please notify the sender > immediately by telephone at the number above and erase the message > You are requested to carry out your own virus check before > opening any attachment. >