Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

It is common to cram useful information in the Unix shell prompt, but I have too many things I want to keep an eye on to fit it all in one prompt: current Gnu screen window, current directory, current time, hostname, current git branch, phase of the moon, you-name-it.

It would be saner to have a fixed status region at the bottom (or top) of the terminal to show all this information, and leave the prompt alone. (I wrote "fixed status region" rather than "fixed status line" because I don't want to limit myself to one line.)

(This region, of course, would not be affected by normal interactive output.)

Is there a standard Unix to implement such a fixed status region, and would allow me to update it through the precmd function?

share|improve this question
add comment

2 Answers

You could split your screen horizontally in screen, set one area the size you want for your status region, and run some watch -t cat ~/.status in it and then fill the content of that ~/.status in your precmd().

share|improve this answer
add comment

AT&T Unix had sysline command, which provided a status line for terminals that don't have it in hardware. Maybe there is a GNU equivalent by now...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.