Created
July 12, 2025 19:17
-
-
Save yuri1969/30e7efb6301b63847284d0c130a0eaf0 to your computer and use it in GitHub Desktop.
Bash hr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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