bm

bibliography manager for latex
git clone git://git.ckyln.com/bm.git
Log | Files | Refs | README | LICENSE

commit c7ddf34c8300c399c6e00ec612772864383427b2
parent 1a01bf8f1d9ff382f94669393052b9ef4b152887
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 21 Oct 2019 11:18:57 +0300

add fallback values

Diffstat:
Mbm | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bm b/bm @@ -116,7 +116,7 @@ entry() { } EOF - $EDITOR $tmpfile + ${EDITOR-nano} $tmpfile grep "Remove this line to cancel entry" $tmpfile >/dev/null 2>&1 || msgexit "Entry canceled" rmline="$(grep -nr "Remove this line to cancel entry" $tmpfile | cut -d : -f 1)" full="$(cat $tmpfile | wc -l)" @@ -136,8 +136,8 @@ agent="bm/$V (https://git.ckyln.com/bm; mailto: cem@ckyln.com)" case $1 in getbib) getbib "$2" "$3" ;; search) search "$2" ;; - edit) "$EDITOR" "$BIB" ;; - view) "$PAGER" "$BIB" ;; + edit) "${EDITOR-nano}" "$BIB" ;; + view) "${PAGER-less}" "$BIB" ;; version) getversion ;; entry) entry ;; *) usage ;;