commit 172a971fd417080a9a486079a2da1e288609ef5a
parent f9408ba17729394bc2ed1b5cc0bfda9c06d55210
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Tue, 26 Jul 2022 17:23:29 +0200
Looks, extra newline in /etc/issue
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/command/issue-gen b/command/issue-gen
@@ -1,7 +1,7 @@
#!/bin/zsh
setopt no_unset extended_glob
exec >/etc/.new.issue.$$
-printf '%s\n' '───┬───────────────────────────────────────────────────────────────────────'
+printf '\n%s\n' ' ┌───────────────────────────────────────────────────────────────────────'
ip a | awk -v CSI=$'\033[' -v l=$'\033[0m│' '
/^[0-9]/ { iface = $2; sub(/:$/, "", iface) }
/link\/ether/ { printf "%s (%s)\n", CSI "33mMAC" l $2, iface }