<p dir="ltr">Here's a like more detail on what you can do with your prompt:</p>
<p dir="ltr"><a href="http://www.thegeekstuff.com/2008/09/bash-shell-ps1-10-examples-to-make-your-linux-prompt-like-angelina-jolie/">http://www.thegeekstuff.com/2008/09/bash-shell-ps1-10-examples-to-make-your-linux-prompt-like-angelina-jolie/</a></p>
<p dir="ltr"><a href="http://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command">http://www.thegeekstuff.com/2008/09/bash-shell-take-control-of-ps1-ps2-ps3-ps4-and-prompt_command</a><br></p>
<p dir="ltr">--<br>
Karl Wilbur<br>
513-322-2481<br>
<a href="mailto:karl@karlwilbur.net">karl@karlwilbur.net</a></p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 27, 2016 08:52, "Tim Chase" <<a href="mailto:blinux.list@thechases.com">blinux.list@thechases.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On October 27, 2016, Jeffery Mewtamer wrote:<br>
> is there any way I could add a short indicator of the active<br>
> terminal before the $? Something along the lines of tty2$ when I'm<br>
> using tty2 and tty3$ when I'm using tty3.<br>
<br>
You should be able to change that to<br>
<br>
  export PS1="$(tty)$"<br>
<br>
which would set your prompt to the full path, something like<br>
<br>
  /dev/tty1$<br>
<br>
You could trim off the leading "/dev/" with<br>
<br>
  export PS1="$(tty | sed 's#^/dev/##')$"<br>
<br>
which would reduce it to just<br>
<br>
  tty1$<br>
<br>
This does merely assign it once when it's evaluated in your .bashrc,<br>
so if you use something like reptyr(1) to move your shell to another<br>
terminal, it won't update so you'd have to re-source your .bashrc<br>
again.  Not a big deal and not something your average user is apt to<br>
encounter, but still something to keep in mind.<br>
<br>
-tim<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Blinux-list mailing list<br>
<a href="mailto:Blinux-list@redhat.com">Blinux-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/blinux-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/blinux-list</a><br>
</blockquote></div></div>