We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e24c23 commit d33a442Copy full SHA for d33a442
notes
@@ -12,6 +12,11 @@ configured_dir=${NOTES_DIRECTORY%/} # Remove trailing slashes
12
notes_dir="${configured_dir:-$HOME/notes}"
13
escaped_notes_dir="$(printf "$notes_dir" | sed -e 's/[]\/$*.^|[]/\\&/g')"
14
15
+# Make sure the notes directory actually exists, and create it if it doesn't
16
+if [ ! -d "$notes_dir" ]; then
17
+ mkdir -p "$notes_dir"
18
+fi
19
+
20
# If no $EDITOR, look for `editor` (symlink on debian/ubuntu/etc)
21
if [ -z "$EDITOR" ] && type editor &>/dev/null; then
22
EDITOR=editor
0 commit comments