summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-09-28 18:29:24 +0200
committerMarc Vertes <mvertes@free.fr>2022-09-28 18:29:24 +0200
commit4bba38ec61e0aba340ea885f2b85ace465735eca (patch)
tree35cb011f33f59d389fb2d8323bc61902aa141be9
parentfdf9f492e04870da59f180bbaffedf610952bfd0 (diff)
update
-rwxr-xr-xbin/w36
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/w3 b/bin/w3
new file mode 100755
index 0000000..90cc29c
--- /dev/null
+++ b/bin/w3
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cols=$(stty -a|awk -F "[ ;]" '{print $9; exit}')
+[ $cols -gt 72 ] && stty cols 72
+w3m "${@:-https://ddg.gg/lite/}"
+stty cols "$cols"