summaryrefslogtreecommitdiff
path: root/bin/w3
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2024-12-16 11:42:33 +0100
committerMarc Vertes <mvertes@free.fr>2024-12-16 11:42:33 +0100
commit517baf7e7578ffb4170be32fbe8900ceea340ad5 (patch)
tree5121f0086d7a6deee194e657538bb0abf06f5cb6 /bin/w3
parent550d6039ab215459e8dc3f83e1cb238156bcc3f3 (diff)
parent4bba38ec61e0aba340ea885f2b85ace465735eca (diff)
Merge branch 'alpine' of github.com:mvertes/dotfiles into alpine
Diffstat (limited to 'bin/w3')
-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"