summary refs log tree commit diff
path: root/bin/hr
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-02-10 12:32:48 +0100
committerRobert Günzler <r@gnzler.io>2026-02-10 12:41:25 +0100
commit63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch)
tree41cd5d2d1ec36e74e464caab722cc9b460153f04 /bin/hr
parent5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff)
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/hr')
-rwxr-xr-xbin/hr20
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/hr b/bin/hr
deleted file mode 100755
index 9c421fc..0000000
--- a/bin/hr
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-str="$1"
-[[ -n $str ]] && str=" $str "
-getcols() {
-    if command -v tput &>/dev/null; then
-        tput cols
-    else
-        stty size | awk '{print $2}'
-    fi
-}
-COLS=$((${COLUMNS:-`getcols`} - ${#str} - 2))
-start=$'\e(0'; end=$'\e(B'; line="qqqqqqqqqqqqqqqq"
-while ((${#line}<$COLS)); do line+=$line; done
-printf "╾" # └
-printf "%s%s%s" "$start" "${line:0:$((COLS/2))}" "$end"
-printf "%s" "$str"
-printf "%s%s%s" "$start" "${line:0:$((COLS/2))}" "$end"
-printf "╼" # ┐
-printf "\n"