From 1e15c9c15d68f40eb1563aef23582ae9c7bfaee4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 24 May 2023 23:47:48 -0700 Subject: [PATCH] Add horizontal rule before and after running commands in zsh --- oni/home/config/common.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oni/home/config/common.scm b/oni/home/config/common.scm index ae67adb..6522640 100644 --- a/oni/home/config/common.scm +++ b/oni/home/config/common.scm @@ -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