From 99587dca308e085b2accb72a89896b5a63cb20e1 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 10 Oct 2016 17:37:40 +0100 Subject: Add script for PhD references --- bin/bin/references | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/bin/references (limited to 'bin') diff --git a/bin/bin/references b/bin/bin/references new file mode 100755 index 0000000..a578728 --- /dev/null +++ b/bin/bin/references @@ -0,0 +1,5 @@ +#!/bin/bash +REF_DIR="$HOME/phd/references" +PDF=$(locate "$REF_DIR/**/*.pdf") +TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:") +[[ -n $TARGET ]] && zathura "$REF_DIR/$TARGET" & -- cgit v1.2.3