Skip to content

Instantly share code, notes, and snippets.

@yuri1969
Created July 12, 2025 19:17
Show Gist options
  • Save yuri1969/30e7efb6301b63847284d0c130a0eaf0 to your computer and use it in GitHub Desktop.
Save yuri1969/30e7efb6301b63847284d0c130a0eaf0 to your computer and use it in GitHub Desktop.
Bash hr
# Add horizontal line before prompt
ORIG_PROMPT_COMMAND="$PROMPT_COMMAND"
hr_precmd() {
printf "\e[90;4m%*s\e[0m\n" "$(tput cols)"
}
PROMPT_COMMAND="hr_precmd; $ORIG_PROMPT_COMMAND"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment