I force my shell prompt to the bottom of the screen

xk3
2025-12-27T16:56:55Z

Is it just me, or is it weird that every terminal starts at the top-left? After three commands, your prompt stays at the bottom of the screen for the rest of the session anyway.

I added this to my fish_greeting last month. (You could add something similar to .bashrc / .zshrc):

printf "\033[$LINES;1H"

If you want to print a status line or two after this then subtract the number of extra lines:

printf '\033[%s;1H' (math $LINES - 1)
cat /proc/loadavg

It might take some getting used to but it feels a lot more natural. When opening a new window or pane, the prompt is always closer to the previous one so my eyes don't need to move as much.

It's a small subtle thing but I think it is an improvement. Return to teletype.

Comments URL: https://tildes.net/~comp/1rwk/i_force_my_shell_prompt_to_the_bottom_of_the_screen

Votes: 43

Comments: 18