Browse code

Add dotfiles

Robert Cranston authored on 17/05/2022 14:15:54
Showing 3 changed files

1 1
new file mode 100755
... ...
@@ -0,0 +1,9 @@
1
+#!/bin/sh
2
+set -euC
3
+
4
+IFS=':'
5
+for manpath in $(manpath 2> /dev/null)
6
+do
7
+  find "$manpath" \! -type d -exec zgrep -l "$@" {} + 2> /dev/null \
8
+  | sed 's#.*/\([^.]*\)\.\([^.]*\).*#\1(\2)#'
9
+done
0 10
new file mode 100644
... ...
@@ -0,0 +1,2 @@
1
+export MANWIDTH='80'
2
+export MANPATH="$HOME/.local/share/man:"
0 3
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+alias man='MANWIDTH="$((COLUMNS > ${MANWIDTH:-80} ? ${MANWIDTH:-80} : COLUMNS))" man'