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:
- Obvious which user I am.
- Obvious which host I’m on.
- Obvious which path I’m in.
- It’s easy to copy and paste a complete source/destination for pasting into, for example, an rsync comman
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.
Father_Redbeard@lemmy.ml 4 days ago
Hey that’s super helpful, thank you. Definitely going to try this out.