diff --git a/README.md b/README.md index 9fcbb96..3fb295c 100644 --- a/README.md +++ b/README.md @@ -115,3 +115,6 @@ The following variables can be set to overwrite Notekeeper defaults: * `NOTE_NAME` * Default is `$YEAR-$MONTH-$DAY.md` + +# `PRINT_TOOL` + * Default is `cat` diff --git a/note b/note index dd74830..49d7b1f 100755 --- a/note +++ b/note @@ -10,6 +10,7 @@ DAY=$(date +'%d') # Set default configuration NOTE_DIR="$HOME/notes" NOTE_NAME="$YEAR-$MONTH-$DAY.md" +PRINT_TOOL="cat" # Overwrite configs from noterc configuration file NOTERC="${XDG_CONFIG_HOME:-$HOME/.config}/notekeeper/noterc" @@ -114,7 +115,7 @@ else fi if [ "$printNoteOnly" = true ]; then - cat "$NOTE_DIR/$NOTE_NAME" + $PRINT_TOOL "$NOTE_DIR/$NOTE_NAME" exit 0 fi