ref command for accessing useful reference guides

This commit is contained in:
shockrah committed 2020-07-27 20:32:32 -07:00
1 parent 977f806f13
commit 3e67d789e0
1 file changed
+13
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
loc="$HOME"/.config/ref/pages
mkdir -p $loc
# open through dmenu if there's no args
if [ -z $1 ];then
page=`find $loc -type f | dmenu -i -l 20`
less "$page"
else
less $loc/"$1"
fi