Comment on Keeping track of different targets in terminal

neidu3@sh.itjust.works ⁨4⁩ ⁨days⁩ ago

prompt setup/config/PS1 is your friend here. I frequently find myself with a myriad of terminals between a bunch of usernames and servers at work, and setting up a proper prompt is key to help you keep track.

My bashrc makes my prompt look like this:

username@hostname:/absolute/path
$ inputgoeshere

… with color coding, of course. Yes, I use a multiline prompt. I somehow never saw that before using ParrotSec despite being a bash user for 25 years. I modified the ParrotSec default to suit my needs better, and I like it:

I pasted my PS1 config here: pastebin.com/ZcYwabfB

Stick that line near the bottom of your ~/.bashrc file if you want to try it out.

source
Sort:hotnewtop