I force my shell prompt to the bottom of the screen
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...
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.