Add horizontal rule before and after running commands in zsh
This commit is contained in:
parent
e590b0cd6b
commit
1e15c9c15d
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,12 @@
|
||||||
"bindkey -e '^Y' x-yank\n"
|
"bindkey -e '^Y' x-yank\n"
|
||||||
"autoload -Uz compinit\n"
|
"autoload -Uz compinit\n"
|
||||||
"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 \""))))))
|
"PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \""))))))
|
||||||
|
|
||||||
(define home-guile-service
|
(define home-guile-service
|
||||||
|
|
Loading…
Reference in a new issue