summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/wtos7
1 files changed, 7 insertions, 0 deletions
diff --git a/.local/bin/wtos b/.local/bin/wtos
new file mode 100755
index 0000000..e3a6da2
--- /dev/null
+++ b/.local/bin/wtos
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+: ${COLUMNS:=`tput cols`}
+width=`dc -e "$COLUMNS 80 $COLUMNS 80 [r] sx >x p"`
+fold -sw $width