summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2022-09-27 15:10:44 +0200
committerMarc Vertes <mvertes@free.fr>2022-09-27 15:10:44 +0200
commit0a294a82b2cf29a46cc926ceefebd2dcd34a0ab7 (patch)
treeecdb8ecfc2602a85c90964b4ae8db5edeb863f9a
parente7896c409cbcd41b980fa487c312fef986af00ec (diff)
add 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..52a6408
--- /dev/null
+++ b/bin/w3
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cols=$(stty -a|awk -F "[ ;]" '{print $9; exit}')
+stty cols 72
+w3m "${@:-https://ddg.gg/lite/}"
+stty cols "$cols"