summaryrefslogtreecommitdiff
path: root/scripts/.local/bin
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-08-12 17:24:12 +0100
committerrafa_99 <raroma09@gmail.com>2021-08-12 17:24:12 +0100
commit46300818ba558eea2fa15a3a92faa8b84738d826 (patch)
tree8909d3d8e5703ee79a957aa4d1925d3fc43c08a9 /scripts/.local/bin
parent3eb2688c177803369547530af3a02b97ee6ba00b (diff)
Added Manuals List Script
Diffstat (limited to 'scripts/.local/bin')
-rwxr-xr-xscripts/.local/bin/manuals6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/.local/bin/manuals b/scripts/.local/bin/manuals
new file mode 100755
index 0000000..b59e3ca
--- /dev/null
+++ b/scripts/.local/bin/manuals
@@ -0,0 +1,6 @@
+#!/bin/sh
+# A script which lists all the manuals in the system
+# without the requiring a cronjob to run mandb
+MANPATH=/usr/share/man
+
+find "$MANPATH" -type f -name "*.bz2" -printf '%f\n' | sed s:'.bz2'::g | sort | uniq | dmenu -i -p "Manual: "| xargs -I {} "$TERMINAL" -e man {}