diff --git a/journal.sh b/journal.sh index b1b63a9..234b617 100755 --- a/journal.sh +++ b/journal.sh @@ -1,4 +1,4 @@ -#! /usr/bin/bash +#! /usr/bin/env bash # Load config & functions . ${HOME}/ayo.conf @@ -37,20 +37,14 @@ function createEntry() { echo $date_heading > "$full_path" fi - # Open in editor - if [ "$typora_flag" = true ]; then - typora "$full_path" > /dev/null 2>/dev/null - else - editFile "$full_path" - fi + editFile "$full_path" } || { # Report; TODO: write log echo ">>> " $full_path } } -notesSync if [ "$1" = "append" ]; then { read -p "Add thought: " thought @@ -69,4 +63,3 @@ elif [ "$1" = "copy" ] || [ "$1" = "c" ]; then else createEntry fi -notesSync diff --git a/notes.sh b/notes.sh index 79cb898..b1a4491 100755 --- a/notes.sh +++ b/notes.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # Load config . ${HOME}/ayo.conf