From c685a1c35ebbe668acf6b82cad4e68927455d107 Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 3 Nov 2025 16:10:10 +0100 Subject: [PATCH] feat(journal): quiet typora execution --- journal.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/journal.sh b/journal.sh index 2fc1806..c78bb8f 100755 --- a/journal.sh +++ b/journal.sh @@ -9,15 +9,6 @@ journal_dir="${notes_dir}/Journal" month_dir=$(date +"%m %b") typora_flag=false -# Parse options -while getopts "t" opt; do - case "$opt" in - t) - typora_flag=true # -t was given - ;; - esac -done - # parse string args (when used as a function and passed "$@") POSITIONAL_ARGS=() while [[ $# -gt 0 ]]; do @@ -49,7 +40,7 @@ function createEntry() { # Open in editor if [ "$typora_flag" = true ]; then - typora "$full_path" + typora "$full_path" > /dev/null 2>/dev/null else vim "$full_path" fi