Nice FreeBSD bash prompt

Thoughts

Every now and then I get the following upon logging into a FreeBSD box:

Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ 

Seems like an odd choice for a tip, given bash is GNU and doesn’t come with the base system. I guess the maintainers figure sufficient numbers of sysadmins install bash from ports.

I try as much as possible to still use tcsh for my interactive shell, and standard sh for scripts.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!