Add horizontal rule before and after running commands in zsh

This commit is contained in:
Tom Willemse 2023-05-24 23:47:48 -07:00
parent e590b0cd6b
commit 1e15c9c15d

View file

@ -102,6 +102,12 @@
"bindkey -e '^Y' x-yank\n"
"autoload -Uz compinit\n"
"compinit\n"
"function horizontal-rule() {\n"
"local width=$(tput cols)\n"
"echo -e \"\\033[0;32m${(pl:$width::━:)}\\033[0m\"\n"
"}\n"
"preexec_functions+=(horizontal-rule)\n"
"precmd_functions+=(horizontal-rule)\n"
"PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \""))))))
(define home-guile-service