Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Make A Line Across The Terminal On Your Command Prompt

Code

NEWLINE=$'\n'

PROMPT="$(printf '─%.0s' {1..$(tput cols)})${NEWLINE}"
PROMPT="${PROMPT}... the rest of your prompt stuff"

TODO: Add this:

for i in $( seq 1 $COLS ); do printf '%s' '█'; done