I suspect there’s some terminology for this question that I’m not aware of. It’s hard to check if a question has already been answered if one doesn’t know the proper vocabulary. So, sorry if this is a repeat question…
I’ve slowly become comfy with bash over the past 2 years or so. (I use the Homebrew package manager for OS X to install the latest version whenever the package is updated. At the time of this writing, that’s version 4.2.37.)
The thing is, I’m one of those people who likes to have certain pieces of information on the screen at all times. For many hackers, this simply means customizing PS1
. And I’ve done that.
But it’s not enough. I’d like to have some more information displayed at all times, but I don’t want my prompt to grow into an unruly monster.
less
provides an option to always display the status of a currently displayed manpage. One such option is the position of the current document. So, if (for example) you’re currently viewing the document 73% of the way through, it will display 73%
at the bottom of the screen.
Is there a way to “glue” some information like CWD
, IP address, etc., into a “status bar” in bash?
tmux
orscreen
(probably easier intmux
). You could try to go without an external program and just use fancy terminal control sequences inPS1
but that would mess up your output / get overwritten / scrolled off the screen as soon as you run any command that outputs to the terminal.