No spam. Not selling anything. Max 1-2 newsletters a month.

Kaveh's Blog logo

Personal blog

Kaveh Tehrani

A More Readable Terminal

Published on
1 mins read

I find the default terminal layout a bit hard to read between where the previous command ran and ended its output. Adding this line to your .bashrc file puts a horizontal line before each primary prompt making it a lot more readable for me to locate the sequence of outputs.

PROMPT_COMMAND=$'printf %"$COLUMNS"s |tr " " "_"'

Obligatory corny screenshot below, courtesy of icanhazdadjoke.

terminal_screenshot