diff --git a/ref b/ref new file mode 100755 index 0000000..b0e78f6 --- /dev/null +++ b/ref @@ -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 +