aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/config
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-05-24 23:47:48 -0700
committerGravatar Tom Willemse2023-05-24 23:47:48 -0700
commit1e15c9c15d68f40eb1563aef23582ae9c7bfaee4 (patch)
treeafb693b7e94ac21307e5a0c5e68668779bc3da53 /oni/home/config
parente590b0cd6bd835120c18690cecfda2cfcb3f987a (diff)
downloadnew-dotfiles-1e15c9c15d68f40eb1563aef23582ae9c7bfaee4.tar.gz
new-dotfiles-1e15c9c15d68f40eb1563aef23582ae9c7bfaee4.zip
Add horizontal rule before and after running commands in zsh
Diffstat (limited to 'oni/home/config')
-rw-r--r--oni/home/config/common.scm6
1 files changed, 6 insertions, 0 deletions
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