ref command for accessing useful reference guides

This commit is contained in:
shockrah 2020-07-27 20:32:32 -07:00
parent 977f806f13
commit 3e67d789e0

13
ref Executable file
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