1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:39:03 -08:00
rc/sh/wipe
2021-07-29 00:37:35 -07:00

14 lines
347 B
Bash

#!/usr/bin/env bash
# YES_ZSH
wipe() {
# TODO: rename because wipe(1) already exists.
[ $# -le 0 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
clear
clear # twice because mintty is weird
echo "\033[30m\033[107m"
printf "*%.0s" {1..$COLUMNS}
echo "\033[0m\n"
}
[ "${SOURCING:-0}" -gt 0 ] || wipe "$@"